I need to add meta description inside a component page. That's what I tried:
$menu = $app->getMenu(); // Load the JMenuSite Object $active = $menu->getActive(); // Load the Active Menu Item as an stdClass Object $meta_description = $active->params->menu-meta_description; $document->addCustomTag('<meta name="description" content="' . $meta_description . '">'); The result is not what I would expect:
<meta name="description" content="0"> Obviously, my content is different from "0". So, what's wrong in my code?