cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: SOLVED
Date Mon, 26 Sep 2005 14:25:04 GMT

Sandor Spruit wrote:

> Right now, my biggest problem is that the Paginator seems to assume 
> request URIs of the pattern "page(#)" - where # is the page number. I
> had overlooked the "page(#)" pattern in the Howto.

maybe you could xsl the page() part into a request parameter path and
match this in your sitemap, sounds hacky though...

ie (from the example)
<images xmlns:page="http://apache.org/cocoon/paginate/1.0">
  <image />
  <image />
  <image />
  <page:page
     current="1"
     total="3"
     current-uri="/cocoon/samples/paginator/page(1)"
                                         ^^^^^^^^^^^^
                  transform this into ?page=1
     clean-uri="/cocoon/samples/paginator/page" />
</images>


> Paginator generates links to other pages by searching for the current
>  page number in the URI and replace the (#) with another number. My
> pipeline is triggered by a URI containing a continuation, so the
> paginator finds the current page number in the URI, as part of this
> large integer (sigh). The problems occur when the integer is the
> final digit in my continuation, because the Paginator tries to 
> replace (<number>) while the final ")" is obviously beyond the length
> of the String.

I suggest you log an issue in bugzilla together with your testcase,
maybe the Paginator just needs a bit more shielding as to what it should
search for.


Jorg


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


Mime
View raw message