Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39940 invoked from network); 28 Jan 2005 17:34:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jan 2005 17:34:18 -0000 Received: (qmail 96127 invoked by uid 500); 28 Jan 2005 17:34:09 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 96101 invoked by uid 500); 28 Jan 2005 17:34:09 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 96084 invoked by uid 99); 28 Jan 2005 17:34:09 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=PRIORITY_NO_NAME,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtprelay04.ispgateway.de (HELO smtprelay04.ispgateway.de) (80.67.18.16) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 28 Jan 2005 09:34:08 -0800 Received: (qmail 13301 invoked from network); 28 Jan 2005 17:34:05 -0000 Received: from unknown (HELO JENS) ([pbs]838331@[81.89.233.174]) (envelope-sender ) by smtprelay04.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 28 Jan 2005 17:34:05 -0000 Date: Fri, 28 Jan 2005 18:33:49 +0100 From: Jens Maukisch Reply-To: Jens Maukisch X-Priority: 3 (Normal) Message-ID: <345440626.20050128183349@maukisch.net> To: Frank Taffelt Subject: Re: [Portal] Select a Coplet inside a CompositeLayout ? In-Reply-To: <05cb01c5046c$63c0b580$273965c1@ifb.interfacebusiness.de> References: <05cb01c5046c$63c0b580$273965c1@ifb.interfacebusiness.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Frank, > How can i select a Copletinstance inside an complex structure of > CompositeLayout's without knowledge of the exact structure (how deep > nested,how many ...) and so on. > I only know the name of the coplet instance. > Is this possible? What about simply traversing the layout-tree? We do something like that in the portal-tools (see http://issues.apache.org/bugzilla/show_bug.cgi?id=33287) inside the attached zip there is a class org.apache.cocoon.portal.tools.copletManagement.LayoutActions which has some functions to work with the portal layout. The id's used for the identification are ones that we gave to each layout element before. What we do there is generate a xml-representation of the portal layout (XMLProfileGenerator) -> add id's to every layout element with a xsl (createIndex.xls) -> transform the xml with another stylesheet to html -> let the user choose an action on a layout element and then pass the id back to the LayoutActions. Some more info: http://wiki.apache.org/cocoon/PortalToolsCopletManagement hth -- * best regards * Jens Maukisch --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org