cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alfred Nathaniel <anathan...@apache.org>
Subject Re: mounting and (parent) variables | 2.1.11
Date Thu, 01 May 2008 12:50:20 GMT
On Mon, 2008-04-28 at 23:38 -0700, dynnamitt wrote:
> I just read this art.:
> http://wiki.apache.org/cocoon/SitemapVariableSubstitution
> 
> Q: How can I reach variables set in parent-sitemap?
> 
>  I wanna use a <map:act type="locale"> i a central xmap file and then do
> different mounts into sub-sitemaps and then
> reuse the {locale} variable.........
> 
> ??

The LocaleAction has a configuration parameter

   <store-in-request>true</store-in-request>

which stores the value in a request attribute "locale".
That value can then be used anywhere in the sitemap as
{request-attr:locale}.

HTH, Alfred.


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


Mime
View raw message