You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ra...@apache.org on 2001/07/22 22:33:27 UTC
cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/screens/html Maximize.vm
raphael 01/07/22 13:33:27
Added: webapp/WEB-INF/templates/vm/portlets/html
customizer-portletset-add.vm
customizer-portletset-addset.vm
customizer-portletset-general.vm
customizer-portletset-layout.vm
webapp/WEB-INF/templates/vm/screens/html Maximize.vm
Log:
Update customization features:
- remove static PortalState class and refactor layout flow
- upgrade functionalities for multicolumn and paned controller
(Works only in Velocity mode right now)
Revision Changes Path
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/customizer-portletset-add.vm
Index: customizer-portletset-add.vm
===================================================================
<form action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<table width="80%" cellspacing="1" cellpadding="0" align="center">
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}" align="left"><font color="$!{skin.TitleColor}">Select ?</font></td>
<td bgcolor="$!{skin.TitleBackgroundColor}" align="left"><font color="$!{skin.TitleColor}"><b>Title</b></font></td>
<td bgcolor="$!{skin.TitleBackgroundColor}" align="left"><font color="$!{skin.TitleColor}"><b>Description</b></font></td>
</tr>
#foreach ($portlet in $browser)
<tr>
<td><input type="checkbox" name="pname" value="$portlet.Name" /></td>
<td valign="top" align="left">
#if ($portlet.Title) $portlet.Title #else $portlet.Name #end
</td>
<td valign="top" align="left">
#if ($portlet.Description) $portlet.Description #else Unavailable #end
</td>
</tr>
#end
</table>
<table width="80%" align="center" cellspacing="1" cellpadding="0">
<tr>
<td align="center">
#if ($prev)
<a href="$jlink.addPathInfo("start",$prev)"><< Prev</a>
#end
#if ($next)
<a href="$jlink.addPathInfo("start",$next)">Next >></a>
#end
</td>
<td align="right">
<input type="submit" name="eventSubmit_doAdd" value="Add" />
</td>
</tr>
</table>
</form>
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/customizer-portletset-addset.vm
Index: customizer-portletset-addset.vm
===================================================================
<form action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<table width="100%" cellspacing="1" cellpadding="0">
<tr>
<td width="100%">
Type the name of the pane to add:
<br />
<input type="text" name="title" value="">
</td>
</tr>
<tr>
<td align="right">
<input type="submit" name="eventSubmit_doAddset" value="Add" />
</td>
</tr>
</table>
</form>
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/customizer-portletset-general.vm
Index: customizer-portletset-general.vm
===================================================================
<form action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="15"><td height="15"> </td></tr>
<tr>
<td>
Set a title for this pane :<br />
<input type="text" name="title" value="$!set.Title" />
</td>
</tr>
<tr height="50">
<td valign="middle" align="right" height="50">
<input type="submit" name="eventSubmit_doSave" value="Save" />
<input type="submit" name="eventSubmit_doApply" value="Save & Apply" />
</td>
</tr>
</table>
</form>
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/customizer-portletset-layout.vm
Index: customizer-portletset-layout.vm
===================================================================
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
#if ($controllers)
<td>
<form name="controllers" action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<input type="hidden" name="eventSubmit_doLayout" value="layout" />
Layout :
<select name="controller" onChange="document.controllers.submit()">
#foreach ($controller in $controllers)
<option #if ($controller.Name == $currentController) SELECTED #end>
#if ($controller.Title) $controller.Title #else $controller.Name #end
#end
</select>
<input type="submit" value="OK" />
</form>
</td>
<td width="2"></td>
#end
#if ($controls)
<td>
<form name="controls" action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<input type="hidden" name="eventSubmit_doControl" value="control" />
Decoration :
<select name="control" onChange="document.controls.submit()">
#foreach ($control in $controls)
<option #if ($control.Name == $currentControl) SELECTED #end>
#if ($control.Title) $control.Title #else $control.Name #end
#end
</select>
<input type="submit" value="OK" />
</form>
</td>
<td width="2"></td>
#end
#if ($skins)
<td>
<form name="skins" action="$jlink" method="post">
#if ($action) <input name="$jlink.ActionKey" type="hidden" value="$action" /> #end
<input type="hidden" name="eventSubmit_doSkin" value="skin" />
Colors :
<select name="skin" onChange="document.skins.submit()">
#foreach ($skin in $skins)
<option #if ($skin.Name == $currentSkin) SELECTED #end>
#if ($skin.Title) $skin.Title #else $skin.Name #end
#end
</select>
<input type="submit" value="OK" />
</form>
</td>
#end
</tr>
</table>
$!set.Controller.getContent($data)
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/screens/html/Maximize.vm
Index: Maximize.vm
===================================================================
$data.setMode("maximize")
$jetspeed.getPortlet($data.Portlet)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org