[opencms-dev] editor configuration for a resource type

Sebastian Lavena sebastian.lavena at globant.com
Thu Dec 20 15:01:15 CET 2007


Hi Pablo,

 

            Actually, I'm having a similar problem. When I create a new
explorertype in opencms-worksplace in order to customize the
"defaultproperties", I get a "valid editor exception" error in the console
when I try to edit an xml related.

 

            Somebody in this list knows how to add an explorertype and
customize the "defaultproperties" in Opencms?

 

I have Opencms 6.2.3, running with Tomcat 5.5 and Java 1.4

 

Many thanks in advance,

 

Sebastian

 

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Pablo Siviero
Sent: Viernes, 14 de Diciembre de 2007 08:49 a.m.
To: 'The OpenCms mailing list'
Subject: Re: [opencms-dev] editor configuration for a resource type

 

Hi Alessio, thanks for your reply.

Actually, what I'm trying to remove is the Title, Description and Keywords
default properties for a resource type.

I've tried your approach already, but referencing to xmlcontent makes that
properties appear, and removing the reference throws the valid editor
exception.

Here's some code for you to see (as well as the whole community too) what
I'm talking about.

 

opencms-workplace.xml

<explorertype name="xmlcontent" key.. icon.. >

<newresource... />

<editoptions>

<defaultproperties enabled="true" shownavigation="true">

<property name="Title">

<property name="Description">

<property name="Keywords">

</defaultproperties>

<contextmenu>

<! - - All the entries -- > 

</contextmenu>

</editoptions>

</explorertype>

 

opencms-modules.xml

<explorertype name="myexplorertype" key. icon. reference="xmlcontent">

            <newresource../>

            <accesscontrol ../>

            <editoptions>

<defaultproperties enabled="true" shownavigation="true">

            <!- - Empty, no properties here - ->

</defaultproperties>

<contextmenu>

<! - - All the entries -- > 

</contextmenu>

            </editoptions>

</explorertype>

 

What happens if.?

a)       You run this code? Default properties are shown (modules options do
not override workplace ones)

b)       You remove the xmlcontent reference in modules? Exception for
invalid editor

c)       You create another explorertype in workplace and change the
reference in modules for the new explorertype? Exception for invalid editor

 

These are all the approaches I've tried. Any idea?

Kind regards, and thank you very much for your time.

Pablo.

 

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Alessio Zurleni
Sent: Viernes, 14 de Diciembre de 2007 05:40 a.m.
To: The OpenCms mailing list
Subject: Re: [opencms-dev] editor configuration for a resource type

 

Pablo,

If I understand, you want to take off some options from contextual menu. I
think that it would be better not to change them from generic "xmlcontent"
opencms-workplace configuration but instead adding to your module in
opencms-modules.xml.  For instance, you define new type from xmlcontent
skeleton and you manager your custom menu entries within.

Regards,

Alessio

Pablo Siviero wrote: 

Hi all, I'm trying to remove some default properties for a resource type. 
 
Removing them from "xmlcontent" definition at opencms-workplace is not a
solution as I want that properties to remain for the other resource types
pointing to it. 
 
I tried to copy the "xmlcontent" definition, changed its name to "noprop"
and pointed the resource type to my new explorertype. All the actions work
(publish, touch, copy, etc) but when I try to edit it, OpenCms doesn't find
an editor, throwing "org.opencms.workplace.CmsWorkplaceException: Cannot
find valid editor for the file."
 
Any idea? Thanks in advance.

Pablo.

 
 
 





  _____  



 
 
 
 
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20071220/87f562ac/attachment.html>


More information about the opencms-dev mailing list