cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Maukisch <coc...@maukisch.net>
Subject Re: [Portal] Select a Coplet inside a CompositeLayout ?
Date Fri, 28 Jan 2005 17:33:49 GMT
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


Mime
View raw message