Joomla Module, get the "Show / Hide Module Name" option
I am overwriting mod_menu default.php and want to get show_title parameter from 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;
?>
This is part of my code. Unfortunately "show_title" doesn't work. What am I doing wrong?
+3
source to share