[opencms-dev] Dynamic values inside structured content

Christoph Fröhlich cfauto at folge2.de
Tue Jan 15 19:38:56 CET 2013


Hi


create a custom widget class that extends

org.opencms.widgets.CmsComboWidget

and overwrite

org.opencms.widgets.A_CmsSelectWidget.parseSelectOptions(CmsObject, I_CmsWidgetDialog, I_CmsWidgetParameter)

To use your schema in your xml content,  configure it as follows:

<layout element="FIELDNAME" widget="your.custom.WidgetClass"/>

Regards
Christoph

Am 14.01.2013 um 17:23 schrieb gnorrus at libero.it:

> Hi
> 
> I have a structured content, where I have a field that is a combo
> 
> I need to have some values inside this combo, but they should be dynamic, for 
> example, I need to get them from a jsp where I have some code that display all 
> folder inside a directory
> 
> Is it possible?
> 
> thanks
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 

-------------------------------------------------
Christoph Fröhlich
Folge 3 GmbH
Neuer Pferdemarkt 1
20359 Hamburg

+49 +40  79 69 48 78
cf at folge3.de
http://www.folge3.de
-------------------------------------------------
Geschäftsführer: Christoph Fröhlich, Anja Künzel
Handelsregister: HRB 105806, Amtsgericht Hamburg 







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130115/ca5a1a2f/attachment.htm>


More information about the opencms-dev mailing list