Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 26244 invoked from network); 10 Jul 2004 01:31:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jul 2004 01:31:59 -0000 Received: (qmail 55644 invoked by uid 500); 10 Jul 2004 01:31:59 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 55490 invoked by uid 500); 10 Jul 2004 01:31:58 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 55478 invoked by uid 99); 10 Jul 2004 01:31:58 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 09 Jul 2004 18:31:57 -0700 Received: (qmail 26235 invoked from network); 10 Jul 2004 01:31:57 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 10 Jul 2004 01:31:57 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__WyonaParentChildCreator?= Date: Sat, 10 Jul 2004 01:31:57 -0000 Message-ID: <20040710013157.26231.71110@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-07-09T18:31:57 Editor: JoergHeinicke Wiki: Cocoon Wiki Page: WyonaParentChildCreator URL: http://wiki.apache.org/cocoon/WyonaParentChildCreator no comment Change Log: ---------------------------------------------------------------------------= --- @@ -15,13 +15,13 @@
Sitemap =
  1. Definition of Action: - ]]> + ]]>
  2. =
  3. "Create-Screen": - ]= ]> = = + ]= ]> = =
  4. "Create-Action": - ]]> + ]]>
=
@@ -30,7 +30,7 @@

Copy the generic XSLT "../../xslt/authoring/parent-child.xsl" into the pub= lication's stylesheet directory "lenya/xslt/authoring/parent-child-new-arti= cle.xsl". Don't forget to change the sitemap appropriately. The following p= arameters have to exist: parentid (generated via XSP), childid (not-empty S= tring, no whitespace), childname (non-empty String), childtype (leaf or bra= nch), doctype (e.g. Article). Exp:

= -BranchLeaf]]> +
parent:Hidden
id:
name:
ChildType:
doctype:<= /td>Generic(= XHTML)Member
= BranchLeaf]]> =
= @@ -40,7 +40,7 @@
  1. doctypes.xconf The different doctypes are configured in a file doctypes.xconf: L= ENYA_CMS/src/webapp/lenya/pubs/*publication*/config/doctypes/doctypes.xconf= . Given are their children and their creator. = - ]]> + = ]]>
= @@ -49,21 +49,21 @@

The document tree.xml has to exist and the branches as well! Please see de= finition of Action.

= - ]]> + ]]> =
Extend Java Class !AbstractParentChildCreator =

Finally the Java class !AbstractParentChildCreator has to be extended.

= - +
=
Sample: sample.xml

When the child is created, the systems takes a sample of the appropriate d= octype and makes a copy of that sample, such that the user has a starting p= oint for editing.

-
= SampleTitle

SamplePersonwrites:SampleQuotation...SampleText...

]]> +
<= head>SampleTitle

SamplePersonwrites:SampleQuotation...SampleText...

]]>
=
Bread-Crumb Path @@ -72,7 +72,7 @@ a bread-crumb path and the siblings from the tree. More details can be fou= nd within = the publication "Materials Science" (ethz-mat).

-]]> +]]>
=
parent:Hidden
id:
name:
!ChildType:
doctype:<= /td>Generic(= XHTML)Member