Jump to content

Add ’Categories’ block to regular CMS Page


MichaelMcG

Recommended Posts

Hi,

I have a CMS page on my PrestaShop website.
I'd like this page to include the HTML that is generated in the 'Categories' block.

So it would be the exact same code, but I would style it differently.

In my /themes/prestashop/cms.tpl (LINE 43), I tried:

       {$cms->content}
       {if $cms->id == 6}

{l s='Categories' mod='blockcategories'}


           {foreach from=$blockCategTree.children item=child name=blockCategTree}
               {if $smarty.foreach.blockCategTree.last}
                   {include file="$branche_tpl_path" node=$child last='true'}
               {else}
                   {include file="$branche_tpl_path" node=$child}
               {/if}
           {/foreach}



       {/if}



But this doesn't show my categories, only gives me the heading 'CATEGORIES'.


How do I do this?



Many thanks

Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...