Hi.
This would be an interesting feature. Move the portlets in all direction is nice, but in production often not needed, because of layouts problems. Especially when working with an 70/30 twocolumn layout setup.
We developed for our Jetspeed1 based solution www.geoportal.bund.de a new personalization customizer (unfortunately too special to contribute it back), that fit our needs.
Is there an easy way to write an own personalization customizer an use it/configure it like a layout type?
Wouldn't it be nice to have an option to disable horizontal movement of portlets?
Are you asking for J1 or J2 ?
in J1, to quickly disable the left/right arrow in the customizer, you just need to do the following:
1 copy the template /WEB-INF/templates/controllers/vm/html/multicolumn.vm to /WEB-INF/templates/controllers/vm/html/multicolumn-updown.vm
2 copy the template /WEB-INF/templates/controllers/vm/html/multicolumn-customize.vm
to
/WEB-INF/templates/controllers/vm/html/multicolumn-updown-customize.vm
3. edit multicolumn-updown-customize.vm to apply patch:
@@ -53,11 +53,7 @@
#end
<td align="right" valign="top" #if (${skin.TitleStyleClass}) class="${skin.TitleStyleClass}" #else class="PTitle" #end #if(${skin.TitleBackgroundColor}) style="background-color: ${skin.TitleBackgroundColor}" #end>
<input type="image" src="images/close.gif" alt="$l10n.CUSTOMIZER_REMOVE" border="0" name="eventSubmit_doDelete">
- #if ($col == 0)
<img src="images/blank.gif" width="14">
- #else
- <input type="image" src="images/left.gif" alt="$l10n.CUSTOMIZER_MOVELEFT" border="0" name="eventSubmit_doLeft">
- #end
#if ($row == 0)
<img src="images/blank.gif" width="14">
#else
@@ -68,11 +64,7 @@
#else
<input type="image" src="images/down.gif" alt="$l10n.CUSTOMIZER_MOVEDOWN" border="0" name="eventSubmit_doDown">
#end
- #if ($col == ($sizes.size() - 1))
<img src="images/blank.gif" width="14">
- #else
- <input type="image" src="images/right.gif" alt="$l10n.CUSTOMIZER_MOVERIGHT" border="0" name="eventSubmit_doRight">
- #end
</td>
#if (${skin.PortletSkinClass})
<td class="PTitleRight" style="font-size:1pt;"> </td>
4. create a new controller definition in /WEB-INF/conf/local-controllers.xreg:
<portlet-controller-entry name="TwoColumnsUpDown">
<classname>org.apache.jetspeed.portal.controllers.VelocityPortletController</classname>
<parameter name="template" value="multicolumn-updown.vm" />
<parameter name="action" value="controllers.MultiColumnControllerAction" />
<parameter name="sizes" value="30%,70%" />
<parameter name="cols" value="2" />
<media-type ref="html"/>
<meta-info>
<title>Two columns (30/70) - Up/Down only</title>
</meta-info>
</portlet-controller-entry>
5. Use this controller in your PSML page.
(If you already have a lot of PSML pages using the standard TwoColumns controller, just change the definition of the controller in the registry
to use the multicolumn-updown.vm template)
-- Raphaël Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]