cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Larsen" <gary.lar...@envisn.com>
Subject RE: Navigate to anchor in generated page?
Date Thu, 27 Oct 2005 12:27:07 GMT
Thanks Andrew.  I'm not describing the problem well.

- The url with #bookmark gets picked up in the sitemap and runs some
flowscript.

- The flowscript prepares data, usually creating a document in eXist if it
needs to. When done, the flowscript does a SendPage to an internal pipeline
matcher

- The matcher then does an aggregation (including the eXist data), a couple
of transforms to create the html and then runs the html serializer.

Do I just need to add the #bookmark to the SendPage uri, or maybe append it
in the uri pipeline somewhere?  

I'll try some things out this AM.
Gary


> -----Original Message-----
> From: Andrew Stevens [mailto:ats37@hotmail.com] 
> Sent: Wednesday, October 26, 2005 8:19 PM
> To: users@cocoon.apache.org
> Subject: RE: Navigate to anchor in generated page?
> 
> >From: "Gary Larsen" <gary.larsen@envisn.com>
> >Date: Wed, 26 Oct 2005 19:41:44 -0400
> >
> >I'm still new with Cocoon and not sure if this is possible.
> >
> >I would like to navigate to a location in the generated page 
> directly 
> >from a link in another page.  (In HTML this would be
> >http://server/myfile.html#bookmark)  Is this possible when 
> generating a 
> >page from the sitemap?
> 
> Unless I'm missing something, you've already answered your 
> own question - "In HTML this would be 
> http://server/myfile.html#bookmark".  So all you have to do 
> is make the pipeline for your first page include the fragment 
> identifier #bookmark when it generates the link, while the 
> pipeline for your second page should include the 
> corresponding named anchor (<A>) element.  It doesn't matter 
> whether it's generated by Cocoon, JSPs, Struts or a bunch of 
> static text files, it's still HTML...
> 
> 
> Andrew.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message