Hello,
In your Joomla! template you can get some informations about the active page and use them as css class inside the html or the body tag.
For example:
$app = JFactory::getApplication();
$menu = $app->getMenu();
$active = $menu->getActive();
$itemid = $active->id;
and
I would like to use this sytem to style differently a seblod list page (displayed from a Seblod list menu) and an item page, displayed after you click on a link/content/view (n°2), from the list view.
For me this it would be a good solution:
- no need to create another template
- no need to create menu link to your item
The problem is that all the active page parameters available seem to exactly the same in the list page and in the item page (you can display them with
<?php print_r($active); ?> ).
Any idea ?
Thank you
Simon