That looks like it will work for me, thanks!
-Andy
----- Original Message -----
From: "Paul Spencer" <[EMAIL PROTECTED]>
To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 1:10 PM
Subject: Re: Hiding portlet title bars
> Andy,
> I have a simple solution.
> 1) Add the following parameter to each portlet_entry in the .xreg file
> <parameter name="_showtitle" value="true" type="boolean"
hidden="false"/>
> 2) In jetspeed.vm:
> o Add the following before the <tr> that displays the title:
> #if ($portlet.PortletConfig.getInitParameter("_showtitle","true")
> != "false")
>
> o Add the following after the </tr> that displays the title:
> #end
>
> o Below is the title section from jetspeed.vm with the above update
> applies:
> Replace the section of jetspeed.vm that displays the title with the
> following. :
> #if ($portlet.PortletConfig.getInitParameter("_showtitle","true") !=
> "false")
> <tr #if (${skin.TitleStyleClass}) class="${skin.TitleStyleClass}"
> #end #if (${titlestyle}) style="${titlestyle}" #end >
> <td align="left" nowrap="true" valign="middle" width="100%">
> $portlet.Title
> </td>
> <td align="right" nowrap="true" valign="middle">
> #foreach ( $action in $actions )
> <a href="${action.Link}" title="${action.Name}" ><img
> src="images/${action.Name}.gif" alt="${action.Name}" border="0"></a>
> #end
> </td>
> </tr>
> #end
>
> Note: The title and buttons will NOT be displayed. Also the user will
> not be able to change the status of the parameter "_showtitle"
>
>
> Will this work for you?
>
> If it does, then I can added it to the Jetspeed. The implementation
> will use the same parameter name, but I will define a isShowTitle method
> to be used in jetspeed.vm
>
> Paul Spencer
>
>
> Andy Grundman wrote:
>
> > There doesn't currently seem to be any way to selectively hide a portlet
> > title bar. I modified jetspeed.vm which is used by TitlePortletControl
in
> > order to do this. Unfortunately, this will remove the title bar from
every
> > portlet.
> >
> > I would like to add this functionality properly. I think a new boolean
> > attribute or parameter in portlet-entry called showTitle would be
> > appropriate. Can someone point me to the right class(es) to add support
for
> > this, or if I'm missing something, let me know how it can currently be
done.
> > I am thinking I need to simply add a new portlet method called
isTitleHidden
> > and check that in jetspeed.vm.
> >
> > Thanks,
> > ----
> > Andy Grundman
> > Developer, Marconi
> > [EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>