Page 1 of 1

Template inside Page-template?

Posted: Wed May 18, 2016 9:47 am
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?

Re: Template inside Page-template?

Posted: Wed May 18, 2016 1:05 pm
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.