Separate names with a comma.
Discussion in 'Joomla Support' started by TurboIT, Jan 9, 2014.
Can i get the Page title or menu item title and display it in a custom html module?
If there's not a plugin to do it, you can use the directphp plugin to put PHP in the editor for the module directly
$menuname = $menu->getActive()->title;
hmm okay, i will try that, I was going to clone the custom html module and create a turboit custom html module. but your solution sounds like less work so i'll give it a go. thanks
No problem, either set Joomla to no editor or if you using an editor like JCE make sure that the parameters allow PHP as well
for anyone else reading this in the future you need to enable prepare content in the custom html module
Yeah that as well sorry , was writing it off the top of my head
is there docs on the menuitem and the properties / functions it exposes ? i could find the menu itself on the joomla site but not the menu item? obviously i might be looking for the wrong name