You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Frank Taffelt <fr...@interface-business.de> on 2005/01/27 13:33:22 UTC

[Portal] Select a Coplet inside a CompositeLayout ?

Hi,

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?

Thanks,
Frank


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [Portal] Select a Coplet inside a CompositeLayout ?

Posted by Jens Maukisch <co...@maukisch.net>.
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