Dieter, just my two cents:
The "Content" object represents a "node" (or perhaps a page), but NOT a repository! Magnolia has several repositories, among one of them is the "website" repository. Such a repository contains "nodes" (or content pages, that's why the class name "Content"). So once you have the one Content object, you can use the "getChildren()" method to get all the children pages of that page.

Giancarlo
www.xumak.com


On Mar 8, 2007, at 6:14 AM, dieter wrote:


H,

I figured out how to do it eventually, thanks

HierarchyManager hm =
MgnlContext.getHierarchyManager(ContentRepository.WEBSITE);
Content repos = hm.getContent("/latest-news"); // get news repository

I believe this will get me what i need.

Dieter


Magnolia - User mailing list wrote:

Have you looked at the <cms:query  .... /> tag?  Documentation can be
found at

http://documentation.magnolia.info/docs/en/developer/magnolia_tld/ cmstaglib.html#query

Then the <cms:contentNodeIterator ...>...</ cms:contentNodeIterator> can take a items attribute referring to name you gave your query results in
the var attribute of cms:query.

--David

dieter wrote:
Hi, I am looking for a way to retrieve a node from anywhere in the
repository
and iterate through its child pages in order to retrieve its title, etc.
I
have seen loads of examples on the forum, but none that actually work in
my
environment, they may be from previous versions of magnolia.

I know it should be really simple.

I am using magnolia 3.

Dieter



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------



--
View this message in context: http://www.nabble.com/Re%3A-Selecting- chiild-pages-tf3368986.html#a9374171
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to