Author: taylor
Date: Fri Feb 23 11:18:32 2007
New Revision: 511058
URL: http://svn.apache.org/viewvc?view=rev&rev=511058
Log:
bugfix: we sometimes were adding (and returning) to the wrong customized page
from the selector
there were times when the navigation stores the last page in a folder, which is
not displayed in the URL
not sure if this is really acceptable web behavior, but im not going to go there
this patch always uses the underlying page path, not the navigational path
Modified:
portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
Modified:
portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm?view=diff&rev=511058&r1=511057&r2=511058
==============================================================================
---
portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
(original)
+++
portals/jetspeed-2/trunk/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
Fri Feb 23 11:18:32 2007
@@ -82,11 +82,7 @@
<div class="layout-edit-bar-right">
#if($allowAddPortlet)
<label>$messages.getString("portal.page.editing.portlet")</label>
-################## OLD portlet selector ####
-## #set ($chooser =
"${jetspeed.basePath}/system/customizer/portlet-selector.psml")
-## <a href="#"
onClick="portletform.action='$formAction';openWindow('$response.encodeURL($chooser)');return
false">
-############################################
- #set ($chooser =
"${jetspeed.basePath}/system/customizer/selector.psml?jspage=${rc.Path}")
+ #set ($chooser =
"${jetspeed.basePath}/system/customizer/selector.psml?jspage=${rc.Page.Path}")
<a href="$response.encodeURL($chooser)">
<img src="#GetPageResource('images/select.gif')" border="0"
title="$messages.getString("portal.page.editing.addportlet")"/>
</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]