[opencms-dev] custom class for templateone.form
Carl Alex Friis Nielsen
cfn at kb.dk
Thu May 3 09:38:36 CEST 2007
> -----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
More information about the opencms-dev
mailing list