You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Gaasch, Derek" <dg...@montana.edu> on 2002/12/05 22:48:36 UTC
getTemplateScreen bug
Hi. I have screen templates separated into logical sub-directories (i.e.
template/main, template/admin, etc and I do things like
$link.setPage("main,Index.vm").
Now, while creating a velocimacro I want to generically refer to the screen
template calling the velocimacro so that I can create a link back to the
current screen. When I use $data.getTemplateScreen(), I get
blah/app/servlet/app/template/main/Index.vm which is no good! Is there
another way around this in the API I don't know about, or is this just a bug
that I'll have to deal with with by replacing String.lastIndexOf('/')?
Many thanks,
d
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: getTemplateScreen bug
Posted by Eric Emminger <er...@ericemminger.com>.
Derek
> Now, while creating a velocimacro I want to generically refer to the screen
> template calling the velocimacro so that I can create a link back to the
> current screen. When I use $data.getTemplateScreen(), I get
> blah/app/servlet/app/template/main/Index.vm which is no good! Is there
> another way around this in the API I don't know about, or is this just a bug
> that I'll have to deal with with by replacing String.lastIndexOf('/')?
Try $data.getScreenTemplate()
--
Eric Emminger
eric@ericemminger.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>