[opencms-dev] Widget configuration

Ana RD anard40 at gmail.com
Mon May 7 08:46:04 CEST 2018


Hello,

I'm trying to use a class to configure a dynamic startup folder  with
ImageGalleryWidget. in opencms 10.5.3.
...
<xsd:element name="Image" type="OpenCmsVfsFile" />
...
<layout element="Image" widget="ImageGalleryWidget" configuration="{class:
'myclass', startup: 'dynamic' }"/>
....
But it doesn't work, It doesn't read the class. What's wrong? Must I do
anything else?
...
My class:

public class myclass implements I_CmsGalleryWidgetDynamicConfiguration{

@Override
public String getStartup(CmsObject cms, CmsMessages msg,
I_CmsWidgetParameter param) {
// TODO Auto-generated method stub
return "/demo/_galeria_imgs/";
}

}


-- 
Best regards,
Ana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180507/c5100ebb/attachment.htm>


More information about the opencms-dev mailing list