You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Peter F." <Pe...@solutionstorent.com> on 2004/12/03 15:13:55 UTC

Re: [SPAM] portlets links

Hello Ajonjolis,

Friday, December 3, 2004, 3:39:45 PM, you wrote:

A> I need some help .
A>  I have about 5 portlets in my home tab. One of these portlets
A> has a link to another portlet X. How do I use $jslink to get this
A> other portlet X to open over the other 5 portlets. That is: how do
A> I get the other 5 portlets to disapear and show only portlet X? 

This is an example with 2 portlets, but probably this will work for
you, if you change the first portlet <entry>...</entry> definition with the
another <portlets>....</portlets> definition. I mean, just use another
<portlets> group instead of the first <entry> portlet.
Although I didn't test this trick. This is just an idea.


1. Set up CardPortletController in PSML file for this TAB's portlets,
like the example bellow.
Pay attention to "<parameter name="_menustate" value="closed"/>" for
hidden portlets.

        <portlets id="000-0001-0001">
            <metainfo>
                <title>Registered Users</title>
            </metainfo>
            <layout position="1" size="-1"/>
            <controller name="CardPortletController">
                <parameter name="parameter" value="select-panel"/>
            </controller>
            <entry id="P-ffdaf0184c-10010" parent="UserList">
                  <layout position="-1" size="-1">
                        <property name="column" value="0"/>
                        <property name="row" value="0"/>
                  </layout>
            </entry>
            <entry id="P-ffdaf0184c-10210" parent="UserRegistrationDetail">
                <parameter name="_menustate" value="closed"/>
                <layout position="-1" size="-1">
                        <property name="column" value="0"/>
                        <property name="row" value="0"/>
                </layout>
            </entry>
        </portlets>



2. To move to hidden portlet "UserRegistrationDetal" from portlet
"UserList", use the link like
<a href="$jslink.getPaneByName("UserRegistrationDetail")">user Details</a>





-- 
Best regards,
 Peter                            mailto:Peter.Fen@solutionstorent.com


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org