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

Vincent Hanniet vhanniet at free.fr
Wed Mar 10 17:21:02 CET 2004


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




More information about the opencms-dev mailing list