cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Duhme <>
Subject Re: [Portal] coplet transformer links
Date Tue, 01 Feb 2005 13:32:15 GMT

> >>Are you using CachingURICoplet or URICoplet ?
> >> 
> >>
> >
> >I'm using the CachingURICoplet
> >
> >David.
> >
> >
> >
> > 
> >
> Hi David,
> Just a hint: i keep cl:links for URI coplets, 
> with cachingURI coplets i
> usually use cl:links and bookmarks to transfer 
> some data to another
> coplet or pass something about its layout. If 
> the targeted pipeline is
> still the same- say 
> temporaryAttributes/application-uri is the same-, i
> think it is much easier to use a usual <a
> hred"uri?req-param1&amp;req-param2">Next</a>, the
> portal-eventlink-transformer coming wth 
> CachingURI will  let your coplet
> pipeline know about the new req-params by events
> way . Then you can
> style it too.
> I guess the cachingURI coplets have been 
> designed to do this. You
> develop your app and then put it in the portal as it is.
> If you still want the cl:link, no idea, but just
> try replace $copletid
> by its actual value and add the 
> temporaryAttributes/application-uri value.
> Hope it helps,
> Phil

Thanks Phil.

I think I will try it again with request parameters because it didn't
work with <cl:links>, wether with the cachingURI coplet nor with the URI 
coplet. With
the URIcoplet the pipeline is called again when I hit a link but the 
doesn't change and the old one from copletinstancedata/portal.xml is used.

But I need to execute a diiferent query in my generator, so somehow I have
to pass the changed parameters to the generator. Maybe me pipeline is 
wrong and I'm fetching the old parameters all the time.

        <map:match pattern="domino/view">
                <map:generate type="domino-proxy">
                        <map:parameter name="server" 
value="{coplet:attributes/server}" />
                        <map:parameter name="database" 
value="{coplet:attributes/database}" />
                        <map:parameter name="designelement" value="view" 
                        <map:parameter name="designelementname" 
value="{coplet:attributes/designelementname}" />
                        <map:parameter name="query" value="
                <map:transform src="styles/behaelterkonten-view2html.xsl">
                        <map:parameter name="copletid" value="{coplet:#}" 
                        <map:parameter name="Count" value="10" />
                <map:serialize type="html" />

Here again the part of my stylesheet:

                <cl:link coplet="$copletid" 
 value="'&amp;RestrictToCategory=[username]&amp;Count=10&amp;Expand=1'" />
                        <img src="images/plus.gif" alt="Plus-Icon" 
border="0" />

Perhaps you could tell me the difference between 'temporaryAttributes' and 
and what's the difference in definig attributes in 'copletdata/portal.xml' 




View raw message