Jump to content

[Solved] Add Breadcrumbs on CMS links


Recommended Posts

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

  • 3 weeks later...

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

×
×
  • Create New...