MichaelMcG Posted April 11, 2011 Share Posted April 11, 2011 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 More sharing options...
MichaelMcG Posted April 13, 2011 Author Share Posted April 13, 2011 Can anyone help with the above?Many thanks Link to comment Share on other sites More sharing options...
bitstream Posted June 18, 2011 Share Posted June 18, 2011 The problem is that you call category block inside cms.tpl. But that tpl has no reference to categories.Hope I'm not wrong but you should add some code to cms controler to have the categories to call inside tpl. Link to comment Share on other sites More sharing options...
bellini13 Posted June 18, 2011 Share Posted June 18, 2011 i think you might need to update the cms.tpl file for what you want to do. 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