You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by dynnamitt <kj...@gmail.com> on 2008/04/29 08:38:13 UTC
mounting and (parent) variables | 2.1.11
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.........
??
--
View this message in context: http://www.nabble.com/mounting-and-%28parent%29-variables-%7C-2.1.11-tp16953706p16953706.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: mounting and (parent) variables | 2.1.11
Posted by Alfred Nathaniel <an...@apache.org>.
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