[opencms-dev] Customizing New Resource Dailog

Paul-Inge Flakstad flakstad at npolar.no
Fri May 1 15:48:00 CEST 2009


Hi again Matt

I'm also still learning my way around OpenCms, so you're in good company! :)

Figuring out values passed as parameters to OpenCms can be a real pain sometimes, but as for the types you mention here, it's luckily not so painful.

The names of the types you mention are displayed in the explorer view; "xmlpage" and "layoutpage", if I remember correctly. Also, I think "none" is the value you use for "No index page" (if you're adding values to the restypes.indexpage property).

As a general clue, looking at {TOMCAT}/webapps/{OPENCMS_WEBAPP_NAME}/WEB-INF/config/opencms-modules.xml will most likely give you the names (and IDs if you need those) of the resource types on your OpenCms instance. Also, you could write a .jsp script to list types, but at the moment I don't have any example code to include here.

Always glad to help!

Cheers,
Paul

________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Matt Thomas
Sent: 1. mai 2009 15:32
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Customizing New Resource Dailog

Thanks for the tips, Paul!

I've found that this works if you add the restypes.available property to the folder in the VFS that you want to restrict.  Then, if you create a new resource in that particular folder, the dialog will be customized for that folder only.

One other question:  I'm still learning my way around opencms, and am not sure where to find the functional names of all the resource types.  For instance, I have added "folder" and "extendedfolder" to the restypes.available list and this works fine, but I do not know the correct naming for Page With Free Text or Pattern Page for me to add to the list.  Can you point me to the location where I can find the names of the resource types?

Thanks again for your insight, this is very helpful.

Matt

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tim Daschner
Sent: Thursday, April 30, 2009 10:10 PM
To: 'The OpenCms mailing list'
Subject: Re: [opencms-dev] Customizing New Resource Dailog

That's useful information. So where does one put the property? I mean where (which file) does one define the restypes.available property?

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Paul-Inge Flakstad
Sent: Thursday, April 30, 2009 2:18 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Customizing New Resource Dailog

Hi Matt

You can define the resource types available via the "new" dialog by entering the type names in the property field "restypes.available" (you may need to create this property field).

Specifiy the resource types by their name and separate them with the pipe ("|") character.

You can also specify which resource types is available to the user as index pages upon folder creation in the same manner, using the property "restypes.indexpage".

Cheers,
Paul

________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Matt Thomas
Sent: 30. april 2009 20:54
To: opencms-dev at opencms.org
Subject: [opencms-dev] Customizing New Resource Dailog
Hello,

I've searched config files and the VFS for a way to configure the dialog box for a new resource.  I would like to restrict this list to just a few choices to be sure that end users do not create resource types that we won't be using.  Does anyone know of a way to configure that dialog?  I do not wish to delete these resource types, only disable them from that box.

Thank you,

Matt Thomas
Newport News, Public Schools

________________________________
Newport News Public Schools Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message.

________________________________
Newport News Public Schools Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090501/195b15c3/attachment.htm>


More information about the opencms-dev mailing list