I found my answer by experimenting with the cms:tags.
Code snippet solution to getting parent contentNode collection data
...
<ul>
<cms:contentNodeIterator contentNodeCollectionName="wvNavGlobalCollection"
inherit="true">
<cms:includeTemplate/>
</cms:contentNodeIterator>
</ul>
...
Code snippet solution to getting parent nodeData data
...
<div id="branding">
<cms:out nodeDataName="image" inherit="true" var="imageName" />
<img src="${pageContext.request.contextPath}${imageName}" >
</div>
...
Not included in the snippets above is the code to link to the cms library
within the script.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave Shaw
Sent: April 7, 2010 9:46 AM
To: [email protected]
Subject: [magnolia-user] Pulling content from a parent page
I am new to magnolia and JSP so please expound on your replies. My goal is
to reproduce a horizontal navigation bar on the child pages of the home
page. Does anyone have a code snippet to show me how this is done?
Also...
Using the Tools > JCR Browser (Website) menu selection I can expand my
website tree and view the pages (folders) and subpages (folders) as well as
properties of pages (content nodes & node data). I would also like to access
a node data of the home page (folder object) which is an image for my
branding of the site that I would also like to reproduce on each child page.
Does anyone have a code snippet that shows me how to do that?
Thanks for the help.
Dave Shaw
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------