Page 1 of 1

Smarty {include} tag

Posted: Tue Oct 18, 2016 9:25 pm
by spcherub
I'd like to be able to use the Smarty {include} tag in my template to pull in another template. Is this supported in CMS2?

What I'm trying to do cannot be done with the template inheritance method that has been well documented in Rolf's help page (http://www.cmscanbesimple.org/blog/the- ... gn-manager).

Thanks,
Sanjay

Re: Smarty {include} tag

Posted: Tue Oct 18, 2016 9:34 pm
by spcherub
I was able to answer my own question after all. Yes it is supported and works great as long as there is no duplication of content block names between the templates.

Re: Smarty {include} tag

Posted: Tue Oct 18, 2016 10:13 pm
by Rolf
Example:

Code: Select all

{include|strip file='cms_template:SomeName'}