Block that contains different templates depending on the page

Hello,



I am new to CS-Cart and trying to integrate it into a current site.



Could anyone either tell or point me to a post that talks about changing any of the panels to use static templates, but ones that change depending one what page is being displayed? I’d like to have ones for the left and center panels. Something like having the directories setup as such:



URL: [url]Domain.com

skins/basic/customer/views/pages/page_1/left_content.tpl

skins/basic/customer/views/pages/page_1/center_content.tpl



URL: [url]Domain.com

skins/basic/customer/views/pages/page_2/left_content.tpl

skins/basic/customer/views/pages/page_2/center_content.tpl



URL: [url]Domain.com

skins/basic/customer/views/pages/page_3/left_content.tpl

skins/basic/customer/views/pages/page_3/center_content.tpl



etc…



Would it be best to make a different template plugin like the {block} plugin that looks at the page being displayed and then load the correct content in those areas, or am I just making things more complicated than I need to?



Thanks for your help.


  • Donald