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
----------------------------------------------------------------