开发者

Joomla 1.5! Page class suffix does not work correctly with other menu modules

开发者 https://www.devze.com 2023-03-10 21:51 出处:网络
Width this code: <?php $menus= &JSite::getMenu(); $menu= $menus->getActive(); $pageclass= \"\";

Width this code:

<?php
  $menus      = &JSite::getMenu();
  $menu      = $menus->getActive();
  $pageclass   = ""; 
  if (is_object( $menu )) :
  $params = new JParameter( $menu->params );
  $pageclass = $params->get( 'pageclass_sfx' );
  endif; 
?>

We can use $pageclass in body tag to style pages. But for me, this code works fine only for mod_mainmenu. If you use , for example, Superfish o开发者_如何转开发r Extended Menu modules "page class suffix" works only for first menu element (Home or else).

Is there any solution? Please, help...


'Page class suffix' is different for different languages. I use Joomfish. In my translation there is no 'page class suffix' for other language. This is the answer. I am happy!

0

精彩评论

暂无评论...
验证码 换一张
取 消