[opencms-dev] custom class for templateone.form

Ian Kavanagh ikavanagh at acm.org
Thu May 3 16:08:51 CEST 2007


Carl Alex Friis Nielsen wrote:
>> -----Original Message-----
>> From: opencms-dev-bounces at opencms.org@KB On Behalf Of Ian Kavanagh
>> <ikavanagh at acm.org>
>>     
>
>   
>> Thanks very much for your prompt replies.  I did take a look at the 
>> .properties files in the classes directory, and it seemed like these 
>> strings are the actual text displayed on the edit form page, 
>> so I added 
>> an entry for my custom class in the "Input field types" 
>> section as follows:
>>
>> form.field.type.textLabel = Text label
>>
>> I hoped this would then show up as an option in the "Type:" drop-down 
>> menu, but it does not.
>> So basically, my problem is that I have my custom class, along with a 
>> .properties file for it, but I don't know how to integrate it 
>> into the 
>> larger templateone framework.  (My apologies if I'm missing something 
>> glaringly obvious).
>>     
>
> The available choices in a drop-down list is configured in the xsd
> describing the resource type being edited (or some nested part of it)
>
> look at the contents of the "schemas" folder in the module.
> inputfield.xsd might be of interest.
>
> However having the choice available in the list only allows you to set
> that value in the resource describing a form - you still have to add
> some code somewhere if you want the system to interpret it.
>
> Cheers,
>
> Carl
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   
I found the xsd last night and got everything working.  Thanks again for 
all your help.

Ian



More information about the opencms-dev mailing list