diff --git a/applications/party/data/PartyPortletData.xml b/applications/party/data/PartyPortletData.xml index 967e493a3e..8ed6f76f81 100644 --- a/applications/party/data/PartyPortletData.xml +++ b/applications/party/data/PartyPortletData.xml @@ -19,6 +19,11 @@ --> + + + + + diff --git a/framework/common/data/PortalSeedData.xml b/framework/common/data/PortalSeedData.xml deleted file mode 100644 index 1d254802c6..0000000000 --- a/framework/common/data/PortalSeedData.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/framework/common/ofbiz-component.xml b/framework/common/ofbiz-component.xml index 405021a08e..56e2378d14 100644 --- a/framework/common/ofbiz-component.xml +++ b/framework/common/ofbiz-component.xml @@ -53,8 +53,6 @@ under the License. - - diff --git a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy index ffa3f4d57b..4311e4b730 100644 --- a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy +++ b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy @@ -22,6 +22,19 @@ import org.ofbiz.base.util.*; import org.ofbiz.entity.condition.*; // only execute when a user is logged in if (parameters.userLogin) { + if (!parameters.parentPortalPageId) { + portalPage = delegator.findByPrimaryKey("PortalPage", [portalPageId : parameters.portalPageId]); + if (portalPage) { + parameters.parentPortalPageId = portalPage.parentPortalPageId; + if (!parameters.parentPortalPageId) { + if(portalPage.originalPortalPageId) { + parameters.parentPortalPageId = portalPage.originalPortalPageId; + } else { + parameters.parentPortalPageId = portalPage.portalPageId; + } + } + } + } userLoginSecurityGroupId = null; condSec = EntityCondition.makeCondition([ EntityCondition.makeCondition("groupId", EntityOperator.LIKE, parameters.parentPortalPageId + "%"), @@ -41,8 +54,11 @@ if (parameters.userLogin) { EntityCondition.makeCondition("parentPortalPageId", EntityOperator.EQUALS, null) ],EntityOperator.AND); portalMainPages = delegator.findList("PortalPage", cond1, null, null, null, false); + parentPortalPageId = null; if (portalMainPages) { parentPortalPageId = portalMainPages.get(0).portalPageId; + } else { + parentPortalPageId = parameters.parentPortalPageId } // get user and system pages ppCond = diff --git a/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy b/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy index 62cd8e642d..86adb949e0 100644 --- a/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy +++ b/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy @@ -32,6 +32,5 @@ iter = portletAttributes.iterator(); while (iter) { attribute = iter.next(); - context.put(attribute.attrName, attribute.attrValue); } diff --git a/framework/common/webcommon/WEB-INF/common-controller.xml b/framework/common/webcommon/WEB-INF/common-controller.xml index 5fa63223e6..bb178edf0f 100644 --- a/framework/common/webcommon/WEB-INF/common-controller.xml +++ b/framework/common/webcommon/WEB-INF/common-controller.xml @@ -107,7 +107,7 @@ under the License. - + diff --git a/framework/common/webcommon/WEB-INF/portal-controller.xml b/framework/common/webcommon/WEB-INF/portal-controller.xml index c6bac9fe8b..56274c6da0 100644 --- a/framework/common/webcommon/WEB-INF/portal-controller.xml +++ b/framework/common/webcommon/WEB-INF/portal-controller.xml @@ -92,8 +92,8 @@ under the License. - - + + diff --git a/framework/common/webcommon/portal/editPortalPage.ftl b/framework/common/webcommon/portal/editPortalPage.ftl index 3fb4cc93c2..d107bfc835 100644 --- a/framework/common/webcommon/portal/editPortalPage.ftl +++ b/framework/common/webcommon/portal/editPortalPage.ftl @@ -62,7 +62,7 @@ under the License.
  •    
  • <#if (portlet.editFormName?has_content && portlet.editFormLocation?has_content)> -
  •    
  • +
  •    
  • <#if !firstInColumn> diff --git a/framework/common/widget/PortalPageScreens.xml b/framework/common/widget/PortalPageScreens.xml index 2cfa6f59d9..aa585c80ef 100644 --- a/framework/common/widget/PortalPageScreens.xml +++ b/framework/common/widget/PortalPageScreens.xml @@ -90,6 +90,24 @@ under the License. +
    + + + + + + + + + + + + + + + + +
    @@ -116,22 +134,4 @@ under the License. - -
    - - - - - - - - - - - - - - -
    -
    diff --git a/framework/common/widget/PortletEditForms.xml b/framework/common/widget/PortletEditForms.xml index 97916c7f42..08cc9eada0 100644 --- a/framework/common/widget/PortletEditForms.xml +++ b/framework/common/widget/PortletEditForms.xml @@ -32,8 +32,6 @@ under the License. - -
    diff --git a/framework/common/widget/PortletScreens.xml b/framework/common/widget/PortletScreens.xml deleted file mode 100644 index 83516b8bed..0000000000 --- a/framework/common/widget/PortletScreens.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - -
    - - -
    -
    - - -
    - - - - - -
    -
    - -
    diff --git a/framework/example/data/ExamplePortalSeedData.xml b/framework/example/data/ExamplePortalSeedData.xml new file mode 100644 index 0000000000..e5ee4d5c72 --- /dev/null +++ b/framework/example/data/ExamplePortalSeedData.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/framework/example/data/ExampleDemoData.xml b/framework/example/data/ExamplePortletData.xml similarity index 86% rename from framework/example/data/ExampleDemoData.xml rename to framework/example/data/ExamplePortletData.xml index 5915be3dec..3767625602 100644 --- a/framework/example/data/ExampleDemoData.xml +++ b/framework/example/data/ExamplePortletData.xml @@ -31,11 +31,8 @@ under the License. screenName="ExamplePortlet3" screenLocation="component://example/widget/example/PortletScreens.xml" editFormName="ExamplePortlet3Edit" editFormLocation="component://example/widget/example/PortletEditForms.xml" /> - - - - - - - + + + + diff --git a/framework/example/ofbiz-component.xml b/framework/example/ofbiz-component.xml index a1d0bda17b..a978728ce4 100644 --- a/framework/example/ofbiz-component.xml +++ b/framework/example/ofbiz-component.xml @@ -36,6 +36,8 @@ under the License. + + diff --git a/framework/example/widget/example/PortletEditForms.xml b/framework/example/widget/example/PortletEditForms.xml index cd9564f99a..a590f74225 100644 --- a/framework/example/widget/example/PortletEditForms.xml +++ b/framework/example/widget/example/PortletEditForms.xml @@ -50,6 +50,7 @@ under the License. + diff --git a/framework/example/widget/example/PortletScreens.xml b/framework/example/widget/example/PortletScreens.xml index 0988d41cf0..e285affaf9 100644 --- a/framework/example/widget/example/PortletScreens.xml +++ b/framework/example/widget/example/PortletScreens.xml @@ -44,8 +44,19 @@ under the License.
    + +