This is where you would typically use subdirectories to organise your
templates. Then you could have the "user" directory and have money.vm
under it.

You would call it then like: $link.setPage("user,money.vm")


hth

--
Jeff


> I wan't template file name like "user.money.vm".
> but TurbineTemplateService getExtension function use "indexof()" get the
> file extension.
> It should be "lastindexof()"....
> can you do it?
>
>
> org.apache.turbine.services.template.TurbineTemplateService{
>     public String getExtension(String template)
>     {
>         if (StringUtils.isEmpty(template))
>         {
>             return getDefaultExtension();
>         }
>
>         //at here ,change to int dotIndex =
> template.lastindexOf(EXTENSION_SEPARATOR);
>         int dotIndex = template.indexOf(EXTENSION_SEPARATOR);
>
>         return (dotIndex < 0) ? getDefaultExtension() :
> template.substring(dotIndex + 1);
>     }
> }
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@turbine.apache.org
For additional commands, e-mail: dev-h...@turbine.apache.org

Reply via email to