Jump to content

Anghel

Members
  • Posts

    3
  • Joined

  • Last visited

Anghel's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. yes that's write, on update all the modification are gone. you can try another way to do this without changing the displayHeader() function. By adding on the body tag {if $page_name =='cms'} class="cms{$smarty.get.id_cms}"{/if} This way you will modify only the blockcms.php
  2. 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
  3. Acelas sfat il recomand si eu. Preferences -> images -> Regenerare Thumbnails (alegi Toate) si bifezi sa le stearga pe cele vechi.
×
×
  • Create New...