Hy Mambley.
I was just searching for the same thing today.
And found a way of doing that.
It's not quite profesional..but it does the job.
Open classes/FrontController.php
Find the function displayHeader()
After this
'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'),
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
'content_only' => (int)Tools::getValue('content_only'),
Add this line of code
'cms_class' =>(int)Tools::getValue('id_cms')
Open Header.tpl
add in the body tag this line of code {if $page_name =='cms'} class="cms{$cms_class}"{/if}
like this
<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}" {/if} {if $page_name =='cms'} class="cms{$cms_class}"{/if}>
What we did so far is take the cms ID and add a class to the body tag.
Now we need to add a class to the LI from the cms links, so we can make a css rule.
Open blockcms.php
find the function getCMStitles().
go to this line
{
$row['link'] = $link->getCMSLink((int)($row['id_cms']), $row['link_rewrite']);
$links[] = $row;
}
Change it like this.
{
$row['link'] = $link->getCMSLink((int)($row['id_cms']), $row['link_rewrite']);
$row['id_s'] = $row['id_cms'];
$links[] = $row;
}
Now open Blockcms.tpl and add to the li a class
{if isset($cms_page.link)}<li class="clink{$cms_page.id_s}">
And now use the css like this ....
body.cms_class1 li.clink1 a { ***The desired css rule for active page*****}
you can see it in action on this website that it;s still in development.
http://biomio.studio...nt/4-despre-noi