Template inside Page-template?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Risu
New Member
New Member
Posts: 1
Joined: Wed May 18, 2016 9:41 am

Template inside Page-template?

Post by Risu »

Hello,

Just started going deeper to CMSMS and I bumped into a problem.

The documentation doesn't help since it's for the previous version.

Question is: How to add a template inside another template in a similar way as the {Navigator} -tag does?

For example, there's 5 different page layouts, and everyone has some shared elements like the navigation (which is handled with the Navigator) and a footer. I'd also like to have some of the scripts in a separate shared file.

How do I add the separately created Footer template to the page templates?

I tried to experimet and got it working with the {Navigator} -tag even if the Footer-template is a Core::Generic -template.

So I'm just asking how to do it properly?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Template inside Page-template?

Post by velden »

Checked Simplex template:

Code: Select all

{global_content|strip name='Simplex Footer'} {* generic Design Manager template *}
This seems to work too (and might be more obvious):

Code: Select all

{include file='cms_template:Simplex Footer'}
Check this too:
http://www.cmscanbesimple.org/blog/the- ... gn-manager

Maybe no need to separate all stuff.
Post Reply

Return to “The Lounge”