You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Billard <ob...@rennes.jouve.fr> on 2003/11/10 10:56:33 UTC

Portal : change tabs with URL parameters ?

Hi all,

Sorry for the cross-post, but this may also concern the dev-list.

Is there any way to activate a change on a portal tab layout in an URL ?
Here is my problem :

I have a menu on the left with 2 tabs, and a main page.
In links in the main page, I would like to change the current selected tab on the left 
menu. Is this possible with the current portal ?

I went a little deeper in the code (2.1 dev) an saw that this could be done in the 
TabContentAspect class where selected item is taken from its AspectData.

<code>
   // selected tab
   Integer data = (Integer) layout.getAspectData(config.aspectName);
   int selected = data.intValue();
</code>

May it be possible to take it first on the request parameters, and then from its 
AspectData ? Is it preserving the SoC ? Maybe a way to a bookmarkable portal ;) ?

Or has this case already been resolved by other mean ?

Thanks in advance

-- 
Olivier BILLARD



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