Hi,

a google search "node access jcr" lead me to the page:

http://www.artima.com/lejava/articles/contentrepository2.html

On page 3 there is a code example, but i advice you to
read the JSR-170. It helps you to understand the
Magnoliapersistence-Layer.

I hope this is a good start for you

regards Robin

--- Juerg Meier <[email protected]> schrieb:

> Hi Robin,
> 
> >The children of this node are accessible through
> get-methodes. 
> 
> That's exactly the point. The nodes (children) are
> there, and the NodeIterator actually iterates over
> them. But could you specifiy a little bit more about
> which "get-methods" you're talking, and how I can
> extract their path?
> 
> -- Juerg
> 
> >>> "Robin Pfeffer" <[email protected]>
> 09/24/07 10:40 AM >>>
> Hi Juerg,
> 
> i can't give you the direct solution, because i got
> no
> time to think deeper, but a few thoughts:
> 
> The anchor target has to be defined before you can
> point there... so whats the problem to give your
> nodes
> an attribute 'anchor' which consists of the current
> page url and the #anchorname. This attribute then
> could be accessed and printed out.
> The contentNodeIterator is just like the name is
> saying an iterator over the content nodes. The
> children of this node are accessible through
> get-methodes. The JCR-Browser(Website) in the
> authoring area gives you the information which nodes
> are available on this pageNode. For further
> information, look at the JSR-170 (Java Content
> Repository).
> 
> HTH
> 
> Robin
> --- Juerg Meier <[email protected]> schrieb:
> 
> > Hi Robin,
> > 
> > Perhaps my code snippet was too much simplified,
> > sorry about that.
> > 
> > cmsu:simpleNavigation in fact would be very easy,
> > but I need to render more than a simple menu tree.
> > More precisely, the output page structure should
> be
> > like this:
> > 
> >   report1.title
> >   thumbnail image floating
> >   report1.lead
> >   report1.href
> >   <hr>
> >   report2.title
> >   thumbnail image floating
> >   report2.lead
> >   report2.href
> >   <hr>
> >   ....
> > 
> > So the question in fact is, how I can get the path
> > to a ContentNode (e.g. report1) inside the
> > ContentNodeIterator and how can it be encoded as
> > anchor href.
> > 
> > -- Juerg
> > 
> > >>> "Robin Pfeffer" <[email protected]>
> > 09/21/07 1:18 PM >>>
> > Hi Juerg, 
> > 
> > what you are searching for is the simpleNavigation
> > -tag
> > there you can specify start and endlevel(of the
> > 'page
> > tree'). This tag gives you the desired links, just
> > look in the wiki, there are good examples.
> > 
> > HTH
> > 
> > Robin
> > --- Juerg Meier <[email protected]> schrieb:
> > 
> > > I am in a page template where I load another
> page
> > > (with cms:loadPage) whose children I iterate
> > through
> > > with cms:contentNodeIterator.
> > > 
> > > Within the iterator, I would like to create a
> link
> > > (href) to each of these child-nodes in the form
> of
> > 
> > > 
> > >  <a href="<cms:out
> > > value="${currentIteratorNode.handle}/>"/>
> > > 
> > > Of course, this does obviously not work, as
> > > currentIteratorNode is unknown, and I don't know
> > how
> > > to get hold of the current loop instance. But I
> am
> > > sure that there must be an easy way to achieve
> > this,
> > > however, I cannot find an example to do so.
> > > 
> > > The final html output should look like this:
> > > 
> > > ****somepage.html
> > > ...
> > >   <a href="/en/report1.html">The title of
> > > report1</a>
> > >   <a href="/en/report2.html">The title of
> > > report2</a>
> > >   <a href="/en/report3.html">The title of
> > > report3</a>
> > > ...
> > > *****
> > > 
> > > Thanks for any hint.
> > > 
> > > -- Juerg
> > > 
> > >
> >
>
----------------------------------------------------------------
> > > for list details see
> > >
> >
>
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> > >
> >
>
----------------------------------------------------------------
> > > 
> > 
> > 
> > Please note:
> > This message and any attachment are confidential
> and
> > may be privileged or otherwise protected from
> > disclosure. If you are not the intended recipient,
> > please telephone or email the sender and delete
> this
> > message and any attachment from your system. If
> you
> > are not the intended recipient you must not copy
> > this message or attachment or disclose the
> contents
> > to any other person.
> > 
> > 
> >       __________________________________  
> > Alles was der Gesundheit und Entspannung dient. BE
> A
> > BETTER MEDIZINMANN! www.yahoo.de/clever
> > 
> >
>
----------------------------------------------------------------
> > for list details see
> >
>
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> >
>
----------------------------------------------------------------
> > 
> > 
> >
>
----------------------------------------------------------------
> > for list details see
> >
>
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> >
>
----------------------------------------------------------------
> > 
> 
> 
> 
>       Wissenswertes für Bastler und Hobby
> Handwerker. BE A BETTER HEIMWERKER!
> www.yahoo.de/clever
> 
>
----------------------------------------------------------------
> for list details see
>
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
>
----------------------------------------------------------------
> 
> 
>
----------------------------------------------------------------
> for list details see
>
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
>
----------------------------------------------------------------
> 



      __________________________________  
Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! 
www.yahoo.de/clever

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to