Chris Kimpton wrote:

> Hi,
> 
> Thanks for the info on the jetspeed.vm - thats working great.
> 
> With jetspeed1.3a1, we had a search portlet, which had a link to an
> advanced search portlet - which became a "maximized" portlet.
> 
> We did this with a link like this;
> 
> /portal/portlet/AdvancedSearch
> 
> It seems that the latest cvs jetspeed does not support this feature,
> it doesn't restrict the portlet to the one specified and only shows
> it if the user has selected it via the customizer.
> 

> Any suggestions on how to achieve something similar with the new
> version of jetspeed?
> 
> My first thoughts are to perhaps have one portlet rather than 2, but
> have two modes of operation and switch between them - since the only
> difference between the 2 portlets is the velocity template anyway.
> 

In the latest CVS, you can achieve this functionality either by
defining the following screen template:

generic.vm:
#set ($portlet = $data.Parameters.getString($jlink.PortletKey))
$jetspeed.getPortlet($portlet)


(you can also do that in JSP using jetspeed:portlet dynamic tag)


and use the URL

/template/generic/portlet/AdvancedSearch

or

if you're willing to convert your Portlet to VelocityPortlet
define a VelocityPortletAction which sets the "advanced" template
in its buildMaximizeContext() method implementation and possibly create

a different context when maximized.


You can have a look at HelloVelocity /HelloAction which sets its own
customization template to see how it's done.

--
Raphael Luta - [EMAIL PROTECTED]
Vivendi Universal Networks - Paris


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

Reply via email to