Hello,
I would like to use two different templates for the same page depending on where on the site the page is called. I did not find any matching parameters in the internal link tag.
If you have a link or a piece of code thank you in advance.
know how to change the template of a page on the fly?
Re: know how to change the template of a page on the fly?
One method would be to have the page template just be something like:
I don't know if there's a core method for actually switching the page template before it's loaded though. Would probably need a module.
Code: Select all
{if $smarty.server.HTTP_HOST == 'foo'}
{include file='cms_template:template1}
{else}
{include file='cms_template:template2}
{/if}
Not getting the answer you need? CMSMS support options