[opencms-dev] Creating "New" and "Delete" XML buttons via jsp?

Jonathan Woods jonathan.woods at scintillance.com
Tue Feb 21 07:05:51 CET 2006


Nigel -

I fear I'm misunderstanding you, but: afaik the 'edit' button can trigger
editing of a XML VFS resources, but the 'add' and 'delete' buttons are
generally only rendered once you're editing that resource, for document
elements with variable [searches for right word here] cardinality - and not
including the root element.

So to put it loosely, for a schema like
<Things><Thing><Multivalue></Multivalue></Thing></Things> the editor will
happily let you add/delete instances of <Multivalued> but unfortunately not
of <Thing>, even though the OpenCms schema rules say you have to specify
minOccurs="0" and maxOccurs="unbounded" for <Thing>.

To get 'add' and 'delete' buttons for adding whole new instances of
structured content, you could presumably nest the schema within a containing
schema, in which <Multivalue> above would become <Thing> and the higher
level container would be a placeholder.  Or you could program your own
buttons to create new VFS files then redirect to the editing interface for
them.

Jon

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nigel Kersten
Sent: 21 February 2006 01:05
To: The OpenCms mailing list
Subject: [opencms-dev] Creating "New" and "Delete" XML buttons via jsp?

reposting one last time as I'm not getting anywhere with this...

I've worked out thanks to Jonathon how to use cms.include to bring up the
edit button for structured content that is being displayed via JSP.

Does anyone know of an equivalent for the "New" and "Delete" buttons?

--
Nigel Kersten [Senior Technical Officer] College of Fine Arts, University of
NSW, Australia.
CRICOS Provider Code: 00098G



_______________________________________________
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





More information about the opencms-dev mailing list