You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Petko Petkov <p....@gmail.com> on 2005/03/13 06:18:48 UTC

Resources

I tried to access a resource that is declared in the root sitemap from
one of mine sub sitemaps, but it didn't work. I can see the resources
are not inherited. Is there anyway to do this?

Thanks!

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


RE: Resources

Posted by Adam Ratcliffe <ad...@prema.co.nz>.
Hi Petko

Although resources are not inherited you can still reuse resource
declarations by declaring them
in a separate file and including that in each sitemap as an XML entity:

<!DOCTYPE sitemap [
    <!ENTITY resources SYSTEM "file:includes/resources.xml">
]>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
...
&resources;
...
</map:sitemap>

Cheers
Adam

> -----Original Message-----
> From: Petko Petkov [mailto:p.d.petkov@gmail.com]
> Sent: Sunday, 13 March 2005 6:19 p.m.
> To: users@cocoon.apache.org
> Subject: Resources
>
>
> I tried to access a resource that is declared in the root sitemap from
> one of mine sub sitemaps, but it didn't work. I can see the resources
> are not inherited. Is there anyway to do this?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


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


[Portal] Links to Coplets

Posted by Mark Ostermann <m....@metasconsult.de>.
Hi all,

i'm trying to put a Link in one Coplet that calls another Coplet. The
selected Menu shall stay the same. I have tried this with bookmarks an
this workes fine. Now I want to call a coplet which is not in my
layout/portal.xml. 
I have read a little bit about the Coplet Transformer and Intercoplet
Communication. I have tried to use this, but I think I have still missed
something about it. Here is my first try with cl:link.

<cl:link coplet="coplet-id-to-use" path="attributes/link"
value="coplet-instance-to-call">
	<cl:content><xsl:value-of select="."/></cl:content>
</cl:link>

The Link which is generated looks like this:
http://localhost:8080/webapp/samples/blocks/portal/portal?cocoon-portal-
action=4&cocoon-portal-event=17

When I use the Link "nothing" happens. The same Page, and same Coplet is
"reloaded". Where is the ralation between cocoon-portal-event set to the
coplet-instance?

Is this the right (preferred) way to manage Links in Cocoon Portal, or
are there other ways? Can someone please point me into the right
direction.

Thanks in advance.

Greetings, 
Mark








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