[opencms-dev] Add new resources type ??? (bis)

M Butcher mbutcher at grcomputing.net
Wed Mar 3 23:32:00 CET 2004


Jim 20100 wrote:
> Hello,
> 
> I tried to follow the procedure read in this mailing list but it does
> not work:
> 
> 1) I have changed the registry.xml
> 2) I have created a class com.opencms.file.CmsResourceTypePhotoGallery
> by copying com.opencms.file.CmsResourceTypePlain

Can you post the source for this?

> 3) I have added a new "photogallery" in 
> WEB-INF/ocsetup/vfs/system/workplace/restypes
> 
> It does not work ??
> 
> When we try to make a new file in the workspace, we find only seven
> types (folder, page, link., text, XML Template, JSP, Upload new file).
> 
> I believed that a loop was done on the vi.resource Javascript variable
> we can insert in the WEB-INF/ocsetup/vfs/system/workplace/restypes
> files.

Can you post the first line of your restype file?

Matt



More information about the opencms-dev mailing list