on 8/9/01 1:56 PM, "Kevin Clark" <[EMAIL PROTECTED]> wrote:
> Thanks for the help this morning. I've got another...
>
> I need to grab the name of the current template and put it into a link;
> specifically, so the same content will be shown after a login/logout.
> Currently, my logout links looks like this:
>
> <a href="$link.setPage( $data.getScreenTemplate() )
> .setAction("user.LogoutUser")">Logout</a>
>
> The basic idea is to show the same page, and execute the LogoutUser
> action...
>
> however, when the current template is in a subdirectory of
> ...templates/screens/, such as templates/screens/foo/[name].vm, the
> parameters get screwed up:
>
> http://myserver/name/servlet/name/template/*foo*/name.vm/action/user.LogoutU
> ser
>
> So, turbine looks for "foo" instead of "foo,name.vm"... (I think) Obviously,
> I'm doing this the wrong way.
>
> How should this be done?
>
> -kevin
Try:
$link.setPage($data.getParameters().get("template"))
-jon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]