You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alfred Nathaniel <an...@apache.org> on 2008/05/01 14:50:20 UTC

Re: mounting and (parent) variables | 2.1.11

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