[opencms-dev] custom class for templateone.form
Carl Alex Friis Nielsen
cfn at kb.dk
Wed May 2 10:44:55 CEST 2007
You have misunderstood the structure of modules.
The "classes" folder is used to hold property files mostly containing localized
strings.
If you want to add java stuff, build it into a jar file and put it in the
"lib" folder (dont forget to publish the jar file and to restart the application server.)
BTW Templateone is NOT a good tool to learn to use OpenCms - it is way too complicated.
Cheers,
Carl
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org@KB On Behalf Of Ian Kavanagh
> <ikavanagh at acm.org>
> Sent: Wednesday, May 02, 2007 3:59 AM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] custom class for templateone.form
>
>
> Greetings,
>
> I am new to OpenCms and am trying to do the following:
> create a new form field type for templateone which allows for
> a simple
> block of text with no corresponding input field in the form, and have
> this field be an option in the drop-down menu of the form
> field section
> of the edit dialog for an email form html file. My idea is that the
> user would select "Text Label" from the "Type" menu, and then
> enter the
> text to be displayed in the "Label" section.
>
> So far I have created a class called "CmsTextLabel" which extends
> A_CmsField, compiled it, and put the .class file into the:
> /system/modules/org.opencms.frontend.templateone.form/classes/
> org/opencms/frontend/templateone/form/
> directory.
>
> Also, I have created a file "CmsTextLabel.properties" which
> consists of
> the following text:
> FIELDS=textlabel:org.opencms.frontend.templateone.form.CmsText
> LabelField
> and placed it into the:
> /system/modules/org.opencms.frontend.templateone.form/classes/
> directory.
>
> I have been trying to figure out the next steps in this
> process from the
> source code, but posting my question to opencms-dev seemed
> like the most
> efficient idea. I haven't found any tutorial that specifically
> addresses this question and would be very grateful for any assistance.
>
> Thanks,
> Ian
>
> _______________________________________________
> 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
>
>
More information about the opencms-dev
mailing list