[opencms-dev] R: Custom widgets and the new acacia editor
lruggeri at maticad.it
lruggeri at maticad.it
Fri Jun 6 09:44:58 CEST 2014
This works for me:
public class CmsAdeVideoGalleryWidget extends A_CmsAdeGalleryWidget {
/** Type name of the download gallery. */
public static final String GALLERY_NAME = "video";
/** The log object for this class. */
//private static final Log LOG =
CmsLog.getLog(CmsAdeVideoGalleryWidget.class);
/**
* Constructor.<p>
*/
public CmsAdeVideoGalleryWidget() {
this("");
}
/**
* Creates a new gallery widget with the given configuration.<p>
*
* @param configuration the configuration to use
*/
protected CmsAdeVideoGalleryWidget(String configuration) {
super(configuration);
}
/**
* @see org.opencms.widgets.A_CmsAdeGalleryWidget#getGalleryName()
*/
@Override
public String getGalleryName() {
return GALLERY_NAME;
}
/**
* @see org.opencms.widgets.I_CmsADEWidget#getWidgetName()
*/
@Override
public String getWidgetName() {
return CmsAdeDownloadGalleryWidget.class.getName();
}
/**
* @see org.opencms.widgets.I_CmsWidget#newInstance()
*/
public I_CmsWidget newInstance() {
return new CmsAdeVideoGalleryWidget(getConfiguration());
}
/**
* @see org.opencms.widgets.A_CmsAdeGalleryWidget#getGalleryTypes()
*/
@Override
protected String getGalleryTypes() {
return CmsResourceTypeVideo.RESOURCE_TYPE_NAME;
}
@Override
protected JSONObject getAdditionalGalleryInfo(CmsObject arg0,
CmsMessages arg1, I_CmsWidgetParameter arg2) throws
JSONException {
return null;
}
@Override
public boolean isInternal() {
return false;
}
}
Bye, Lisa
Da: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
Per conto di Tobias Karrer
Inviato: giovedì 5 giugno 2014 20.45
A: opencms-dev at opencms.org
Oggetto: Re: [opencms-dev] Custom widgets and the new acacia editor
Everyone seems to have these problems, but looks like nobody is able to
solve it... :-(
Am 23.01.2013 14:49, schrieb lruggeri at maticad.it
<mailto:lruggeri at maticad.it> :
Hi,
after upgrading to OpenCms 8.5, my custom widgets dont show in the
interface of the new Acacia editor.
For example i have a widget defined as follows:
CmsAdeVideoGalleryWidget extends A_CmsAdeGalleryWidget {
}
If i switch to the default editor for xmlcontent then i see the button to
open the custom gallery and everything works fine.
In the Acacia editor i see just an input field without the button to open
the gallery.
Maybe something is changed that breaks compatibility?
Bye, Lisa
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140606/6d65c2fd/attachment.htm>
More information about the opencms-dev
mailing list