cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g4 <ja...@root10.net>
Subject Pagination inside an aggregated page
Date Mon, 22 Sep 2003 16:30:39 GMT
Hi there list,

I'm trying to use the Paginator inside an aggregated page. In my 
sitemap I have something like this:



....
   <!-- PAGINATED *ONLY* apply to the PARTNER page -->
       <map:match pattern="**body-*.html">
         <map:select type="parameter">
           <map:parameter name="parameter-selector-test" value="{2}"/>
             <map:when test="partner">
               <map:generate src="cocoon:/{1}partner(*)"/>
               <map:call resource="skinit">
                 <map:parameter name="type" value="document2html"/>
                 <map:parameter name="path" value="{1}{2}.html"/>
                 <map:parameter name="notoc" value="false"/>
               </map:call>
             </map:when>
             <map:otherwise>
               <map:generate src="cocoon:/{1}{2}.xml"/>
               <map:transform type="idgen"/>
               <map:transform type="xinclude"/>
               <map:transform type="linkrewriter" 
src="cocoon:/{1}linkmap-{2}.html"/>
               <map:call resource="skinit">
                 <map:parameter name="type" value="document2html"/>
                 <map:parameter name="path" value="{1}{2}.html"/>
                 <map:parameter name="notoc" value="false"/>
               </map:call>
             </map:otherwise>
         </map:select>
       </map:match>

       <map:match pattern="**partner(*)">
         <map:generate src="cocoon:/{1}partner.xml"/>
         <!-- paginate -->
         <map:transform type="paginate" 
src="pagesheets/partner.pagesheet" label="content">
           <map:parameter name="page" value="{2}"/>
         </map:transform>
         <map:transform src="skins/common/xslt/html/pagedlist2html.xsl"/>
         <map:serialize type="xml"/>
         <!-- end pagination -->
       </map:match>

.....


I've been trying to throw something like this :

http://127.0.0.1:8080/Mysite/Dir/partner.html(1)

but this produces a resource not found error. If i just do :

http://127.0.0.1:8080/Mysite/Dir/partner.html

it's bringing everything in OK, if I change the <map:generate 
src="cocoon:/{1}partner(*)"/>  to have a value, say;

<map:generate src="cocoon:/{1}partner(3)"/>

I can then see it's working well

So is it possible to change the value of the
	<map:generate src="cocoon:/{1}partner(*)"/>

part? In other words in the "next" and "previous" links if I could give 
the sitemap a value from these links so that the map:generate source 
was dynamically changed it would work. How would I go about this? Am I 
even on the right track!?


MTA

Jason Lane

Developer
Root10 developments


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


Mime
View raw message