klni Posted February 5, 2015 Share Posted February 5, 2015 Salut, je voulais adapter la solution des liens "active" aussi dans le block CMS. et j'ai créer la code suivant: blockcms.tpl: {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)} <li> {if $smarty.get.id_cms == $cms_page.id_cms} <a id="{$cms_page.meta_title|escape:'html':'UTF-8'}" href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.meta_title|escape:'html':'UTF-8'}" class="selected"> {$cms_page.meta_title|escape:'html':'UTF-8'} </a> {else} <a id="{$cms_page.meta_title|escape:'html':'UTF-8'}" href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.meta_title|escape:'html':'UTF-8'}"> {$cms_page.meta_title|escape:'html':'UTF-8'} </a> {/if} </li> {/if} {/foreach} le problème est: quand smarty cache est activé "$smarty.get.id_cms" ne se recharge pas correctement. Donc le code ne fonctionne plus comme il faut. Quelq'un a une idée ou solution? Link to comment Share on other sites More sharing options...
KonfiDD Posted February 6, 2015 Share Posted February 6, 2015 Même problème Si quelqu'un a une solution ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now