user3613095
user3613095

Reputation: 99

Joomla Module, get "Show / Hide Module Title" parameter

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

Answers (1)

user3613095
user3613095

Reputation: 99

The solution was:

if($module->showtitle):

Upvotes: 3

Related Questions