Reputation: 99
I'm overwriting the mod_menu default.php and want to receive the "show_title" parameter from the module option. Using Joomla 3!
<?php
$doc = JFactory::getDocument();
$page_title = $doc->getTitle();
$menu = &JSite::getMenu();
$active = $menu->getActive();
$menuname = $active->title;
$parentId = $active->tree[0];
$parentName = $menu->getItem($parentId)->title;
if ($params->get('show_title')):
?>
<h2><?php echo $module->title; ?><?php #echo $params->get('title'); #$parentName; ?></h2>
<?php
endif;
?>
That's a part of my code. Unfortunately "show_title" doesn't work. What am I doing wrong?
Upvotes: 3
Views: 723