Joolma 1.5 show section name and menu name

Hi Experts,

Two seperate but very similar questions:
1)  I woud like to echo the section name on the page, how can I get the Joomla section name using PHP?
2)  Same question but for menu name,  how can I get the menu name using php?

Thanks,
HNM
HelpNearMeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael KnightCommented:
Have a look here:

http://stackoverflow.com/questions/4640160/joomla-echo-section-name 

first post is for menu third should echo section
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Robert JacksonSystem DeveloperCommented:
You can display/hide the section name using article parameters



Section Title: Select Show or Hide to set whether the Section Title is displayed or not. The Section Title is the name given to the Section when it was created in the Section Manager, and any changes needed are made there.
Article-parameters-advanced.png
0
Andrew DerseIT ManagerCommented:
Both the solutions about work well for solutions.  Alternatively you can turn on the breadcrumbs module so your users know where they are...but the above two solutions should be the solution you are looking for.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Robert JacksonSystem DeveloperCommented:
I agree with NUKIT - just turn on the breadcrumbs module - that will answer your question 2) - without the need for any php code.
0
Michael KnightCommented:
The question wasn't how do i do it through joomla! or the breadcrumbs module.
The questions were:
...how can I get the Joomla section name using PHP?
AND
...how can I get the menu name using php?




0
Andrew DerseIT ManagerCommented:
You are correct...and as I stated in my post, your solution will work...i posted the other information in case they were looking for another perspective...
0
HelpNearMeAuthor Commented:
Thanks for the ideas, I'll be testing this afternoon and post my feedback
0
Andrew DerseIT ManagerCommented:
How did the testing go?  
0
HelpNearMeAuthor Commented:
nothing yet; stuck closing another proj, hopefully tonight.  Thanks for waiting.
0
Andrew DerseIT ManagerCommented:
No problem, I completely understand.  
0
HelpNearMeAuthor Commented:
Hi All,

Haven't forgotten about this, should be on it tomorrow then I can respond.  thanks for waiting
0
HelpNearMeAuthor Commented:
thanks for waiting, michaelaknight your solution was perfect thanks.
0
Michael KnightCommented:
my pleasure.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Joomla

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.