Thanks Laurent -- that works great!

Another question, is there a way to pass a request
parameter with it, so that the anchor is something
like:

<a
href="portal?portal-action=n&portal-event=m&news-id=x>My>
News Page</a>

Thanks,
-Alex

--- Laurent Trillaud <[EMAIL PROTECTED]> wrote:
> Hi,
> Events in the new portal engine are very powerful
> but totally misdocumented.
> If you want a link to switch to a News tab in your
> portal you need to create
> an event to say to the maintab composite layout to
> switch to is second
> layout (0 based index) and send it to the portal.
> Hoppefully, the portal-coplet transformer will do it
> for you
> <cl:links>
> <cl:link layout="maintab" value="1"
> path="aspectDatas/tab"/>
> <cl:content>My News Page</cl:content> 
> </cl:links>
> will be replace by 
> <map:transform type="portal-coplet" />
> by an anchor
> <a href="portal?portal-action=n&portal-event=m>My
> News Page</a>
> where n and m are auto-incremented integer.
> 
> If the link can't be compute inside the portal, you
> can use the bookmark
> feature of the portal . The sample include with
> cocoon use
> it(portal/resources/bookmarks.xml).
> Just write a link
> <a
>
href="http://myserver/myproject/portal/bookmark?showtab=1";>
> My News Page</a> and it will do the same thing.
> 
> Laurent Trillaud
> 
> > -----Message d'origine-----
> > De : Alex Romayev [mailto:[EMAIL PROTECTED]
> > Envoyé : vendredi 16 janvier 2004 23:20
> > À : [EMAIL PROTECTED]
> > Objet : [portal] Linking to portal pages
> > 
> > Hi,
> > 
> > I am porting my site from old portal-fw to the new
> > portal engine.  I was able to port all the coplets
> and
> > pages with any problems, however, I got really
> stuck
> > on events.  I am clearly missing the point here,
> so
> > could someone at least point me in the right
> direction
> > (an example would be great!)?
> > 
> > I need to create a links to my portal pages from
> > within coplet content.  For example, I used to
> have
> > News page, so I could use the following:
> > 
> > <a href=portal/news>News</a>
> > 
> > Now my News page is represented as a tab.  How
> would I
> > generate the right link to this page?
> > 
> > Thanks,
> > -Alex
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=====
Alex Romayev
Software Architect
http://www.romayev.com
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to