Hello Nameless :)

info.magnolia.module.templatingkit.templates.STKTemplateModel.getSiteRoot()

If you have your own template model, you can add appropriate methods...

        public String getContactLink() throws RepositoryException
        {
                String contactPageUUID = 
getSiteRoot().getNodeData("contactUUID").getString();
                if (StringUtils.isEmpty(contactPageUUID))
                        return null;

                return LinkUtil.createLink(ContentRepository.WEBSITE, 
contactPageUUID);
        }

Regards, Patric

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Magnolia Forums (on behalf of Christian Balaguer Jehle)
Gesendet: Mittwoch, 28. September 2011 11:59
An: Magnolia User List
Betreff: [magnolia-user] Access parent HomeTemplate-Node from any given 
SubTemplate


Out of an ftl, how can I access the parent "HomeTemplate"-Node? I need a 
specific property of this node.

In the page dialog i save a property which i need to access from any subpage of 
the Home-Page.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=68ed3a1b-2edb-4f4e-bd7c-63428a0485b5


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

_____________________________________________________________________
Vorstand: Ralf Heller, Udo Möbes
Vorsitzende des Aufsichtsrates: Kirsten Heller
Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg
Amtsgericht Freiburg HRB 6218

Versand am 28.09.2011 12:40 von dosch patric
Validation-Code: 4055011134210



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to