Bacardo Posted August 18, 2009 Share Posted August 18, 2009 Hello Prestashop Community!I've tried to put the breadcrumb in the top of the CMS generated links (like the products page, and the rest on the site), but no luck:in cms.tpl i wrote: {capture name=path}{$cmslink.meta_title|escape:htmlall:'UTF-8'}{/capture} {include file=$tpl_dir./breadcrumb.tpl Apparently had worked and looks pretty, but actually it shows the first item of the CMSLINK array,the question is: how i can get the correct title? i suppose that i must create a function in the cms.php that retrieve the .meta_title with the given ID, but I don't know how.Thanks in advance!Regards.Bacardo. Link to comment Share on other sites More sharing options...
olymp Posted September 2, 2009 Share Posted September 2, 2009 {capture name=path}{$cmslink.meta_title|escape:htmlall:'UTF-8'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} It worked for me after replacing $cmslink.meta_title by $cms->meta_title Link to comment Share on other sites More sharing options...
Bacardo Posted September 2, 2009 Author Share Posted September 2, 2009 Thanks olymp, it was more easy than i thought.BTW:The final code looks like this:REPLACE on CMS.TPL: {if $cms} BY: {if $cms} {capture name=path}{$cms->meta_title|escape:htmlall:'UTF-8'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} Thanks!Regards. Bacardo. Link to comment Share on other sites More sharing options...
Recommended Posts