I created a custom $link tag that extends TemplateLink and added a
method.  you could probably do
data.getScreenTem... in 2.1, but you get the idea.

    /**
     * Returns the name of the template that is being being processed
     */
    public String getCurrentView()
    {
        return ScarabPage.getScreenTemplate(data).replace('/', ',');
    }

Then in TR.props specify your Link class instead of TemplateLink

john mcnally


Jonathan Jackson wrote:
> 
> How would you go about creating a link to the current
> template in a .vm file? I'd like to have buttons that change
> properties and then reload the current page, but I run into
> trouble with $data.screenTemplate returning the path using
> '/' to separate directories rather than the required ','.
> $link.toString($data) returns the full path to the current
> page, but it includes any parameters for actions that were
> used in creating the current page. Any suggestions?
> 
> Thanks,
> -Jonathan Jackson
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to