cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Trillaud" <ltrill...@jouve.fr>
Subject RE: [portal] Linking to portal pages
Date Tue, 20 Jan 2004 16:56:00 GMT
Huummm. I think that the portal-object-model action is missing in the
news/news-news-item.portlet pattern

<map:match pattern="news/news-news-item.portlet">
<map:aggregate ...>
	blah blah
</map:aggregate>
<map:transform src="portal/xslt/news/join-with-people.xsl"/>
<!-- begin insert here -->
<map:act type="portal-object-model">
<map:parameter name="portalName" value="portal" />
</map:act>
<!-- end insert -->
<map:transform src="portal/xslt/news/news-item.xsl">
blah blah
<map:transform ...
<map:act ...
<map:transform ...
<map:serialize ...
</map:match>

Laurent Trillaud

> -----Message d'origine-----
> De : Alex Romayev [mailto:romayev@yahoo.com]
> Envoyé : mardi 20 janvier 2004 15:29
> À : users@cocoon.apache.org
> Objet : RE: [portal] Linking to portal pages
> 
> Hi Laurent,
> 
> Thanks again for your help,
> -Alex
> 
> ==========================================
> copletinstancedata/portal.xml:
> 
> The calling coplet:
> 
> <coplet-instance-data id="news-summary-1"
> name="standard">
>   <coplet-data>news-summary</coplet-data>
> </coplet-instance-data>
> 
> The coplet being called, requires news-id parameter
> (no default):
> <coplet-instance-data id="news-item-1"
> name="standard">
>   <coplet-data>news-item</coplet-data>
>   <attribute>
>     <name>news-id</name>
>     <value
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="java:java.lang.String"></value>
>   </attribute>
> </coplet-instance-data>
> 
> ======================================
> portlets.xmap:
> 
> <map:match pattern="home/news-summary.portlet">
>   <map:generate
> src="cocoon://site/home/news-summary.resource"/>
>   <map:transform
> src="portal/styles/html/portlets/home/news-summary.xsl">
>     <map:parameter name="use-request-parameters"
> value="true"/>
>   </map:transform>
>   <map:act type="locale">
>     <map:transform type="i18n">
>       <map:parameter name="locale" value="{locale}"/>
>     </map:transform>
>   </map:act>
>   <map:transform type="portal-coplet" />
>   <map:serialize type="xml"/>
> </map:match>
> 
> 
> <map:match pattern="news/news-news-item.portlet">
>   <map:aggregate element="module">
>     <map:part
> src="cocoon://site/content/news.processed.xml"/>
>     <map:part
> src="cocoon://site/content/family.processed.xml"/>
>   </map:aggregate>
>   <map:transform
> src="portal/xslt/news/join-with-people.xsl"/>
>   <map:transform src="portal/xslt/news/news-item.xsl">
>     <map:parameter name="news-id"
> value="{coplet:attributes/news-id}"/>
>   </map:transform>
>   <map:transform
> src="portal/styles/html/portlets/home/news-summary.xsl"/>
>   <map:act type="locale">
>     <map:transform type="i18n">
>       <map:parameter name="locale" value="{locale}"/>
>     </map:transform>
>   </map:act>
>   <map:transform type="portal-coplet" />
>   <map:serialize type="xml"/>
> </map:match>
> 
> ===============================================
> news-summary.xsl
> 
> <cl:links>
>   <cl:link layout="maintab" value="3"
> path="aspectDatas/tab"/>
>   <cl:link layout="newstab" value="2"
> path="aspectDatas/tab"/>
>   <cl:link coplet="news-item-1" value="{@id}"
> path="parameters/news-id"/>
>   <cl:content>Read more</cl:content>
> </cl:links>
> 
> ============================================


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


Mime
View raw message