[opencms-dev] Adding more resources sub-types

Mariano Barcia mariano.barcia at colaborativa.net
Mon Apr 26 17:40:02 CEST 2004


Dylan,

Here is a snippet of a cmssetup.txt that worked for us. We run this
script on installation, as you mentioned initially.

...
addFileExtension pdf binary
addFileExtension zip binary
addFileExtension class binary
addFileExtension txt plain
addFileExtension html plain
addFileExtension htm plain
addFileExtension jpeg image
addFileExtension jpg image
addFileExtension gif image
addFileExtension jsp jsp
addFileExtension shtml plain
...

I believe this is all you have to do to make it work. HTH,

--mariano

-----Mensaje original-----
De: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
En nombre de Dylan Milks
Enviado el: Lunes, 26 de Abril de 2004 12:18 p.m.
Para: opencms-dev at opencms.org
Asunto: RE: [opencms-dev] Adding more resources sub-types


If I go to "Resource type management" on the admin side of OpenCMS, and
add ".tiff" under "Image" - what corresponding action is taking place?
Where is it storing those values (e.g.: Image has -> gif, jpeg, jpg,
bmp, etc...)?

If I add a sub-type this way, I don't have to modify/create a new class.
Can't I simulate this some way without having to write a new class?

- Dylan

-----Original Message-----
From: Joachim Arrasz [mailto:info at arrasz.de]
Sent: Monday, April 26, 2004 10:02 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Adding more resources sub-types


Hi,


> I've seen some previous threads where people have wanted to add
> additional resource types - like generic XML. I want to do something
> similar (but different): add additional sub-types. Example: I want a
> fresh install of OpenCMS to have .swf files under the binary type and
> .tif/.tiff under the image type. I've modified the cmssetup.txt and
> opencms.properties files, and then tried a new install - but it didn't
> work - the file types didn't appear under their categories. Can
someone
> please provide me with the steps needed to do this?


you must also write special subclasses for your ResourceTypes. Then it
should work!
Hope this helps

Achim

-- 
Questions about OpenCMS?
--> www.opencms-forum.de



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list