Hi Rita,
Just use Freemarker include (or JSP include).
Example:
/templates/main.ftl wants to include /templates/global/header.ftl
In main.ftl place:
[#include "global/header.ftl" /]
You can find a lot of example on STK.
HTH,
Matteo
-----Original Message-----
From:
user-list-owner@... [mailto:
user-list-owner@...] On Behalf Of Rita_
Sent: martedì, 3. novembre 2009 12:32
To:
user-list@...
Subject: [magnolia-user] Using content across templates (eg. headers/menu, footer)
Hi,
I would like to create "sub-templates" for the content that will be re-used
across the home page and other pages such as the headers/menu and footer.
This content is not meant for authoring.
I tried using the <cms:includeTemplate /> as mentioned in the Wiki
(
http://wiki.magnolia-cms.com/display/WIKI/Reusing+content+on+different+pages).
That didn't work for me for some reason nor the subTemplates property.
How do I go about defining these "sub-templates" in the "templates
definition" section (AdminCentral configuration module) i.e. the content
nodes so that I can re-use them across all my pages? I believe that's my
issue.
Could I get please get some help on this? Thanks a lot.
Cheers,
Rita
--
View this message in context:
http://old.nabble.com/Using-content-across-templates-%28eg.-headers-menu%2C-footer%29-tp26160073p26160073.htmlSent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.htmlTo unsubscribe, E-mail to: <
user-list-unsubscribe@...>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.htmlTo unsubscribe, E-mail to: <
user-list-unsubscribe@...>
----------------------------------------------------------------