You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Friedrich <ma...@menta.de> on 2004/08/12 15:28:42 UTC

Action Sets

Hello!

i have a little question about map:act section from sitemap.xmap.

it is true that i can't use an map:act within another map:act?
here is my problem (see comments)

<map:match pattern="portal">
	<map:act type="auth-protect">
		// here i can use the user id variable {ID}
		<map:act:type="locale">
			// now the variable {ID} doenst exist or is empty
		</map:act>
	</map:act>
....
</map:match>

i want to access to the variable ID within the second map:act.
i have anyone read about action sets, is this the only way?

kind regards,
marco f.

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


Re: Action Sets

Posted by KOZLOV Roman <ro...@opencascade.com>.
Hi,
try {../ID} in the subaction.

Marco Friedrich wrote:

> Hello!
>
> i have a little question about map:act section from sitemap.xmap.
>
> it is true that i can't use an map:act within another map:act?
> here is my problem (see comments)
>
> <map:match pattern="portal">
>         <map:act type="auth-protect">
>                 // here i can use the user id variable {ID}
>                 <map:act:type="locale">
>                         // now the variable {ID} doenst exist or is empty
>                 </map:act>
>         </map:act>
> ....
> </map:match>
>
> i want to access to the variable ID within the second map:act.
> i have anyone read about action sets, is this the only way?
>
> kind regards,
> marco f.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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


Re: Action Sets

Posted by Olivier Billard <ol...@laposte.net>.
Hi Marco,

The sitemap-variables scope change when you are in actions...
try
<map:match pattern="portal">
	<map:act type="auth-protect">
		// here i can use the user id variable {ID}
		<map:act:type="locale">
			// the variable {../ID} is accessible
		</map:act>
	</map:act>
...
</map:match>

HTH,
--
Olivier Billard

Marco Friedrich wrote:

> Hello!
> 
> i have a little question about map:act section from sitemap.xmap.
> 
> it is true that i can't use an map:act within another map:act?
> here is my problem (see comments)
> 
> <map:match pattern="portal">
> 	<map:act type="auth-protect">
> 		// here i can use the user id variable {ID}
> 		<map:act:type="locale">
> 			// now the variable {ID} doenst exist or is empty
> 		</map:act>
> 	</map:act>
> ....
> </map:match>
> 
> i want to access to the variable ID within the second map:act.
> i have anyone read about action sets, is this the only way?
> 
> kind regards,
> marco f.


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