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 Gregory Joseph <gj...@kiala.com> on 2003/09/02 14:46:04 UTC

local-managers.xreg or custom pan tabs..

Hi list,

While trying to customize our installation of Jetspeed, I wanted to modify
the way tabs (for paned portlets) are displayed. First I though i'd just
override the jetspeed-tab.vm, but then I saw in the doc that I could define
custom control(ler)s in local-managers.xreg
So i created this file(see below), but it doesn't work. So, several questions
1/ can this file override controls defined in controls.xreg, or does it only
provide *additional* ones?
2/ what's the best way of customizing the way the tabs are displayed? (btw -
i'm using jsp's mostly - can it be included before "screenJsp" is included in
default.jsp (ie, i'd like to have more control on where this is included in
my display)
3/ what exactly are PanedPortletControl and TabControl, and is there a
document explaining all the different control(ler)s somewhere? (maybe i
didn't look correctly for this yet, which is very possible, please xcuse
me;))

Thanks for any tip,

greg

------------------
here's my local-managers.xreg:


<?xml version="1.0" encoding="ISO-8859-1"?>

<registry>

  <portlet-control-entry name="PanedPortletControl" hidden="true">
 
<classname>org.apache.jetspeed.portal.controls.VelocityPortletSetControl</cl
assname>
    <parameter name="theme" value="test.vm"/>
    <meta-info>
      <title>PanedPortletControl</title>
    </meta-info>
    <media-type ref="html"/>
  </portlet-control-entry>


  <portlet-control-entry name="TabControl">
 
<classname>org.apache.jetspeed.portal.controls.VelocityPortletSetControl</cl
assname>
    <parameter name="theme" value="test.vm"/>
    <meta-info>
      <title>Tab control</title>
    </meta-info>
    <media-type ref="html"/>
  </portlet-control-entry>

</registry>

Re: local-managers.xreg or custom pan tabs..

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Tuesday, September 2, 2003, at 05:46  AM, Gregory Joseph wrote:

> Hi list,
>
> While trying to customize our installation of Jetspeed, I wanted to 
> modify
> the way tabs (for paned portlets) are displayed. First I though i'd 
> just
> override the jetspeed-tab.vm, but then I saw in the doc that I could 
> define
> custom control(ler)s in local-managers.xreg
> So i created this file(see below), but it doesn't work. So, several 
> questions
> 1/ can this file override controls defined in controls.xreg, or does 
> it only
> provide *additional* ones?

It provides additional ones

> 2/ what's the best way of customizing the way the tabs are displayed? 
> (btw -
> i'm using jsp's mostly - can it be included before "screenJsp" is 
> included in
> default.jsp (ie, i'd like to have more control on where this is 
> included in
> my display)

add your new control and controller definitions to the registry, and 
then select them with the customizer

> 3/ what exactly are PanedPortletControl and TabControl, and is there a
> document explaining all the different control(ler)s somewhere? (maybe i
> didn't look correctly for this yet, which is very possible, please 
> xcuse
> me;))
>
Its covered some in the tutorial
Try this old document, its dated but I think the control and controller 
section is still relevant:

http://www.bluesunrise.com/jetspeed-docs/Jetspeed.htm

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
+01 707 529 9194


Re: local-managers.xreg or custom pan tabs..

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Tuesday, September 2, 2003, at 05:46  AM, Gregory Joseph wrote:

> Hi list,
>
> While trying to customize our installation of Jetspeed, I wanted to 
> modify
> the way tabs (for paned portlets) are displayed. First I though i'd 
> just
> override the jetspeed-tab.vm, but then I saw in the doc that I could 
> define
> custom control(ler)s in local-managers.xreg
> So i created this file(see below), but it doesn't work. So, several 
> questions
> 1/ can this file override controls defined in controls.xreg, or does 
> it only
> provide *additional* ones?
> 2/ what's the best way of customizing the way the tabs are displayed? 
> (btw -
> i'm using jsp's mostly - can it be included before "screenJsp" is 
> included in
> default.jsp (ie, i'd like to have more control on where this is 
> included in
> my display)

Forgot to mention, you can also set the default control and controller 
in the JR.p:

services.PortalToolkit.default.control=TitlePortletControl
services.PortalToolkit.default.controller=OneColumn
services.PortalToolkit.default.skin=orange-grey

The defaults are used when no control or controller are specified in a 
PSML portlets  collection

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
+01 707 529 9194