[opencms-dev] What determines if a template is available in the selectionbox of the properties dialog of a file?
Manfred Schenk
manfred.schenk at zerobyte.de
Wed May 27 09:12:47 CEST 2009
Paul-Inge Flakstad schrieb:
> Hi Manfred,
>
> If you mean the drop-down list that appears in the dialog for certain resource types, simply place your template file in the /system/modules/your.module.name/templates/ folder. It should be visible in the list straight away, without restarting Tomcat. (And btw, it is the title property of the template file that is displayed in the drop-down list; if you want it at the top of the list, begin your title with a "-" or something like that.)
Thanks,
I've found my mistake now:
Some of my templates had been created by copying an existing template
from another module as base and afterwards adjusted. But for two of
these templates I forgot to change the "title"-property. So the old
title appeared three times in the list but since the list is very long
at the moment this wasn't visible at first view.
>
> Hope this helps you.
>
> Cheers,
> Paul
>
>> -----Original Message-----
>> From: opencms-dev-bounces at opencms.org
>> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Manfred Schenk
>> Sent: 26. mai 2009 19:48
>> To: The OpenCms mailing list
>> Subject: [opencms-dev] What determines if a template is
>> available in the selectionbox of the properties dialog of a file?
>>
>> Hi,
>>
>> just another question I came across:
>> What determines if a template is available in the selectionbox of the
>> properties dialog of a file?
>>
>>
>> I've defined a new template in a new module but it doesn't show up in
>> the dialog mentioned above.
>>
>> I've already restarted tomcat but it doesn't change anything.
>>
>> When I insert the property by hand I can set the template -
>> but this is
>> just a workaround.
Regards,
Manfred
--
| Manfred Schenk | born between RFC638 and RFC640
| PGP-Keys unter |
| http://www.ZEROByte.de/pgp/ | WWW: http://www.ZEROByte.de/
More information about the opencms-dev
mailing list