Smarty {include} tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Smarty {include} tag

Post 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
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Smarty {include} tag

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Smarty {include} tag

Post by Rolf »

Example:

Code: Select all

{include|strip file='cms_template:SomeName'}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”