From 220705d2da512f9f4e253bdba119ba05608c7fdd Mon Sep 17 00:00:00 2001 From: Bruno Busco Date: Wed, 18 Nov 2009 23:31:59 +0000 Subject: [PATCH] A slightly modified patch from Sascha Rodekamp "Drag 'n' Drop for myPortal + update prototype and script.aculo.us" (https://issues.apache.org/jira/browse/OFBIZ-3190) - OFBIZ-3190 - I changed some tabs to spaces - It seems to me that everything works with the script.aculo.us version that is already present in the framework; so I did not commit the script.aculo.us update since could break some other thing git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881999 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/common/PortalPageServices.xml | 73 ++++++++- framework/common/servicedef/services.xml | 17 ++- .../webcommon/WEB-INF/portal-controller.xml | 5 + .../webcommon/portal/editPortalPage.ftl | 8 +- framework/common/widget/PortalPageScreens.xml | 22 +-- framework/images/webapp/images/loader.gif | Bin 0 -> 4176 bytes framework/images/webapp/images/myportal.css | 28 ++++ framework/images/webapp/images/myportal.js | 141 ++++++++++++++++++ .../images/webapp/images/myportal_load_bg.png | Bin 0 -> 529 bytes 9 files changed, 279 insertions(+), 15 deletions(-) create mode 100644 framework/images/webapp/images/loader.gif create mode 100644 framework/images/webapp/images/myportal.css create mode 100644 framework/images/webapp/images/myportal.js create mode 100644 framework/images/webapp/images/myportal_load_bg.png diff --git a/framework/common/script/org/ofbiz/common/PortalPageServices.xml b/framework/common/script/org/ofbiz/common/PortalPageServices.xml index 935be9b275..46ca3c324e 100644 --- a/framework/common/script/org/ofbiz/common/PortalPageServices.xml +++ b/framework/common/script/org/ofbiz/common/PortalPageServices.xml @@ -107,9 +107,9 @@ under the License. - - - + + + @@ -299,5 +299,72 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/common/servicedef/services.xml b/framework/common/servicedef/services.xml index 4fb294aaa8..5a162f5515 100644 --- a/framework/common/servicedef/services.xml +++ b/framework/common/servicedef/services.xml @@ -412,7 +412,7 @@ under the License. location="org.ofbiz.common.preferences.PreferenceServices" invoke="getUserPreference"> Gets a single user preference. - If not found for the specific userLogin, find it for the _NA_ userlogin. + If not found for the specific userLogin, find it for the _NA_ userlogin. If the value is DEFAULT, find the value in general.properties file. @@ -635,6 +635,21 @@ under the License. + + + + + + + + + + + + + + Create a new Portlet Attribute diff --git a/framework/common/webcommon/WEB-INF/portal-controller.xml b/framework/common/webcommon/WEB-INF/portal-controller.xml index a8e207dc9a..2eeb9f839f 100644 --- a/framework/common/webcommon/WEB-INF/portal-controller.xml +++ b/framework/common/webcommon/WEB-INF/portal-controller.xml @@ -75,6 +75,11 @@ under the License. + + + + + diff --git a/framework/common/webcommon/portal/editPortalPage.ftl b/framework/common/webcommon/portal/editPortalPage.ftl index 143ec5b460..b93f9dc1af 100644 --- a/framework/common/webcommon/portal/editPortalPage.ftl +++ b/framework/common/webcommon/portal/editPortalPage.ftl @@ -47,13 +47,14 @@ under the License. <#list portalPageColumnList?if_exists as portalPageColumn> - + + <#assign firstInColumn = true/> <#list portalPagePortletViewList as portlet> <#if (!portlet.columnSeqId?has_content && portalPageColumn_index == 0) || (portlet.columnSeqId?if_exists == portalPageColumn.columnSeqId)> <#if portlet.screenName?has_content> <#assign portletFields = ''> -
+
<#list portalPages as portalPageList> <#if portalPage.portalPageId != portalPageList.portalPageId> @@ -64,6 +65,9 @@ under the License.
    + + +
    ${portletFields}
  • Portlet : ${portlet.portletName?if_exists} [${portlet.portalPortletId}]
  • ${portletFields}
       
  • diff --git a/framework/common/widget/PortalPageScreens.xml b/framework/common/widget/PortalPageScreens.xml index 5451aa4d8a..5d6cd7e4bc 100644 --- a/framework/common/widget/PortalPageScreens.xml +++ b/framework/common/widget/PortalPageScreens.xml @@ -42,7 +42,7 @@ under the License. - +
    @@ -64,7 +64,7 @@ under the License.
    - +
    @@ -95,10 +95,12 @@ under the License.
    - +
    + +