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 "Bernhard J. Hirschmann" <be...@t-systems.de> on 2001/10/04 13:05:15 UTC

defining a portlet size of the view

Hello Jetspeed-User!

Is it somehow possible to configure the size of the view of a portlet?

And how is it possible to configure the position of a specific portlet?
i.e. if I want to have the portlet "info" in the first row in the first
column.

best regards,
Bernhard



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


AW: defining a portlet size of the view

Posted by "Bernhard J. Hirschmann" <be...@t-systems.de>.
Hello Paul,

thank you very much for your help. However, I'm bloody new to this topic, so
I have some problems in understanding your hints...

> You can suggest a column width to the browser, see the
> <portlet-controller-entry> for TwoColumns in
> WEB-INF/conf/controllers.xreg.

I don't have this file in my Jetspeed 1.3a1 installation.

Do you mean "WEB-INF/conf/jetspeed-config.jcfg"? There I can find the
<portlet-controller-entry>, but I can't figure out how to suggest a column
width there, neither I see any "TwoColumns" value. What do you exactly mean?

> To define your own controller, place the <portlet-controller-entry> in
> an new file named <portlet-controller-entry>.

:) I don't understand this either. I guess you mean that I should somehow
link the new entry done in the <portlet-controller-entry> to the new file
"<portlet-controller-entry>", right? But how?
The entries in "WEB-INF/conf/jetspeed-config.jcfg" are linking some Java
classes as controllers, but what I understand is that you suggest to link a
XML file here... (I'm so confused...)

> Example of the local-manager with a definition of My Columns.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <registry>
>     <portlet-controller-entry name="MyColumn" hidden="false">
>         <meta-info>
>             <title>MyColumns</title>
>         </meta-info>
>
> <classname>org.apache.jetspeed.portal.controllers.VelocityPortletC
> ontroller</classname>
>         <parameter name="template" value="multicolumn.vm"
> hidden="false"/>
>         <parameter name="action"
>             value="controllers.MultiColumnControllerAction"
> hidden="false"/>
>         <parameter name="sizes" value="25%,75%" hidden="false"/>
>         <parameter name="cols" value="2" hidden="false"/>
>         <media-type ref="html"/>
> </registry>

And how can this "VelocityPortletController" be found. Neither the class nor
the source is in my distribution, not in the jetspeed-1.3a1.jar and not in
the velocity.jar

Thanks again for your help, but can you please try to make it clearer to me?

Bernhard


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


Re: defining a portlet size of the view

Posted by Paul Spencer <pa...@mikon.com>.
Bernhard,
You can suggest a column width to the browser, see the
<portlet-controller-entry> for TwoColumns in
WEB-INF/conf/controllers.xreg.

To define your own controller, place the <portlet-controller-entry> in
an new file named WEB-INF/conf/local_managers.xreg.  

Example of the local-manager with a definition of My Columns.

<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-controller-entry name="MyColumn" hidden="false">
        <meta-info>
            <title>MyColumns</title>
        </meta-info>
       
<classname>org.apache.jetspeed.portal.controllers.VelocityPortletController</classname>
        <parameter name="template" value="multicolumn.vm"
hidden="false"/>
        <parameter name="action"
            value="controllers.MultiColumnControllerAction"
hidden="false"/>
        <parameter name="sizes" value="25%,75%" hidden="false"/>
        <parameter name="cols" value="2" hidden="false"/>
        <media-type ref="html"/>
</registry>


Using the customizer, portlets can be placed in columns and a rows
within the columns.

Paul Spencer

"Bernhard J. Hirschmann" wrote:
> 
> Hello Jetspeed-User!
> 
> Is it somehow possible to configure the size of the view of a portlet?
> 
> And how is it possible to configure the position of a specific portlet?
> i.e. if I want to have the portlet "info" in the first row in the first
> column.
> 
> best regards,
> Bernhard
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

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