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

opencms-mailing at astron.biz opencms-mailing at astron.biz
Thu Mar 11 14:15:01 CET 2004


Sorry,

I have done your 3 points, and nothing changed.

It does not work. I only see the previous type when clicking on New ?

I am really disapointed after 10 tries.
I have 5.0.1.

In which file should I change "additionalresources" ?

Regards

20100

-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Vincent Hanniet
Sent: Wednesday, 10 March, 2004 17:22
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Add new resources type ??? (bis)


opencms-mailing at astron.biz wrote:
> I have done exactly the same except that I did not create my own the 
> action and templates files. I just wanted to test if it works when I 
> click on New. I does not work for me ?
> What is my mistake ?

I have just tried your classes and it works !
3 points to get it working :
* Install your classes directly in the Tomcat 
webapps/opencms/WEB-INF/classes/... correct paths to match the packages 
names
* In your registry.xml move your type declaration "after the lines which 
describe the jsp type as it seems that the order of the resources types 
is hard coded somewhere in opencms" as I previously mentionned. If you 
don't do so, you will see, by example, that the files in 
system/workplace/restypes will appear as if they are of "link" type 
instead of "plain" type.
* Copy system/workplace/restypes/page into 
system/workplace/restypes/techmanDetail
Then, of course, you have to stop/restart Tomcat.
By the way, I use OpenCms 5.0.1, it may be an important point too.

> Another question : do you know how to modify the workplace without 
> making an ocsetup again ?
You can "hack" the workplace files directly by changin them, or/and add 
workplace files in your package by adding a property named 
"additionalresources" with a value composed of the full names (ie with 
path) of the workplace resources you want to add/replace separated by a ";".

Bye,
Vincent

_______________________________________________
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


PLEASE NOTE:  This mail has been scanned by ASTRON security





More information about the opencms-dev mailing list