开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜