cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject Re: Can I pass sitemap variable to sub-sitemap?
Date Thu, 03 Jun 2004 07:30:57 GMT
If this variable must be set by component like action?
----- Original Message ----- 
From: "vjaulin" <vincent.jaulin@ajlsm.com>
To: <users@cocoon.apache.org>
Sent: Wednesday, June 02, 2004 5:30 PM
Subject: Re: Can I pass sitemap variable to sub-sitemap?


> roy huang a écrit :
> 
> >Sorry ,the subject should be sitemap variable
> >----- Original Message ----- 
> >From: "roy huang" <lingererhuang@hotmail.com>
> >To: <users@cocoon.apache.org>
> >Sent: Wednesday, June 02, 2004 4:05 PM
> >Subject: Can I pass sitemap parameter to sub-sitemap?
> >
> >
> >  
> >
> >>Hi,all:
> >>    the sitemap looks like:
> >>      <map:act type="test">
> >>       <map:match pattern="apps/*/**">
> >>        <map:mount uri-prefix="apps/{1}" check-reload="true" src="apps/{1}/"
/>
> >>       </map:match>
> >>      </map:act>
> >>    the action will set an sitemap variable like action,so I can use it like
> >>    <map:parameter name="action" value="{action}"/>
> >>    It works if in the same sitemap,but if I mount sub sitemap ,can this sitemap
variable pass to sub sitemap so I can use {action} in sub sitemap?
> >>
> >>Roy Huang
> >>
> 
> sitemap.xmap
> 
> <map:pipelines>
> 
> <map:component-configurations>
> <global-variables>
> <!--+
> | Define global parameters here:
> | <skin>my_skin</skin>
> | ...
> | You can access them by {global:*name*}, e.g. {global:skin}.
> | These values are inherited into sub-sitemaps and can
> | be extended there.
> +-->
> <varA>blah</varA>
> 
> </global-variables>
> </map:component-configurations>
> 
> ...
> 
> 
> </map:pipelines>
> 
> 
> 
> sub-sitemap.xmap
> 
> 
> ......
> 
> 
> <map:transform src="{global:varA}"/>
> 
> ......
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
Mime
View raw message