[opencms-dev] imageOps problem
Dmitry Lihachev
lda at tusur.ru
Thu Feb 9 07:27:33 CET 2006
Hello, Tane Potaka.
> Hi,
> I am running OpenCms 6.0.3 with the imageOps module installed.
>
> I have many images in different image galleries. When I use the image
> gallery widget to choose an image, no images in my image galleries can
> be seen in the dialog box.
>
> If I disable imageOps, then the images show up.
>
> Is there a workaround for this? Is anyone else having this problem?
class CmsResourceTypeImage in imageops module use deprecated API (method
initConfiguration(String, String)). I think this is trouble.
Try write your own CmsResourceTypeImage class like this:
----------------- cut here -----------------------
/**
* File: CmsResourceTypeImage.java
* Creation: 06.02.2006
* Author: Dmitry Lihachev
*/
package de.metamesh.opencms.imageops;
public class CmsResourceTypeImage extends
org.opencms.file.types.CmsResourceTypeImage {
/**
* @see org.opencms.file.types.I_CmsResourceType#getLoaderId()
*/
public int getLoaderId() {
return ImageLoader.C_RESOURCE_LOADER_ID;
}
}
----------------- cut here -----------------------
Compile it (or get already compiled (jdk 1.5) class in attachment) and
repack de.metamesh.opencms.imageops_0.5.5.zip with this
class.
--
WBR, Dmitry Lihachev
Sorry for my poor english
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classes.zip
Type: application/octet-stream
Size: 23509 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060209/3ae2c8f8/attachment.obj>
More information about the opencms-dev
mailing list