You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/12/23 03:49:52 UTC
svn commit: r728855 - in /ofbiz/trunk/framework/common:
webcommon/portal/listPortalPortlets.ftl webcommon/portal/portalPage.ftl
widget/PortalPageForms.xml
Author: hansbak
Date: Mon Dec 22 18:49:52 2008
New Revision: 728855
URL: http://svn.apache.org/viewvc?rev=728855&view=rev
Log:
some corrections on commit 728634
Modified:
ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl
ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl
ofbiz/trunk/framework/common/widget/PortalPageForms.xml
Modified: ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl?rev=728855&r1=728854&r2=728855&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl Mon Dec 22 18:49:52 2008
@@ -27,7 +27,7 @@
<div class="screenlet-title-bar">
<ul>
<li class="h3">Available portlets</li>
- <li><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonCancel}</a></li>
+ <li><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonCancel}</a></li>
</ul>
<br class="clear"/>
</div>
Modified: ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl?rev=728855&r1=728854&r2=728855&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl Mon Dec 22 18:49:52 2008
@@ -71,7 +71,7 @@
<#if (!portlet.columnSeqId?has_content && portalPageColumn_index == 0) || (portlet.columnSeqId?if_exists == portalPageColumn.columnSeqId)>
<#if portlet.screenName?has_content>
<#if configurePortalPage?has_content>
- <#assign portletUrlLink = "portalPageId="+currentPortalPage.portalPageId+"&portalPortletId="+portlet.portalPortletId+"&portletSeqId="+portlet.portletSeqId+"&configurePortalPage=true&originalPortalPageId="+parameters.originalPortalPageId/>
+ <#assign portletUrlLink = "portalPageId="+currentPortalPage.portalPageId+"&portalPortletId="+portlet.portalPortletId+"&portletSeqId="+portlet.portletSeqId+"&configurePortalPage=true&originalPortalPageId="+parameters.originalPortalPageId+"&mainPortalPageId="+parameters.mainPortalPageId/>
<div class="portlet-config">
<div class="portlet-config-title-bar">
Modified: ofbiz/trunk/framework/common/widget/PortalPageForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/PortalPageForms.xml?rev=728855&r1=728854&r2=728855&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/widget/PortalPageForms.xml (original)
+++ ofbiz/trunk/framework/common/widget/PortalPageForms.xml Mon Dec 22 18:49:52 2008
@@ -55,10 +55,11 @@
</field>
</form>
- <form name="NewPortalPage" type="single" target="createPortalPage" title="" default-map-name="PortalPagemap">
+ <form name="NewPortalPage" type="single" target="createPortalPage?mainPortalPageId=${parameters.mainPortalPageId}" title="" default-map-name="PortalPagemap">
<actions>
<set from-field="userLogin.userLoginId" field="ownerUserLoginId"/>
<set field="originalPortalPageId" from-field="parameters.originalPortalPageId"/>
+ <set field="mainPortalPageId" from-field="parameters.mainPortalPageId"/>
</actions>
<auto-fields-service service-name="createPortalPage"/>
<field name="ownerUserLoginId">
Re: svn commit: r728855 - in /ofbiz/trunk/framework/common:
webcommon/portal/listPortalPortlets.ftl webcommon/portal/portalPage.ftl
widget/PortalPageForms.xml
Posted by Hans Bakker <ma...@antwebsystems.com>.
Hi Bruno,
Sorr but it took some time, to solve this. I have 2 students working on
this, although they can make it work, the coding could be better. So I
improved the code, and added a field: parentPortalPageId to group pages
together for a certain application.
The code below have been removed...if you have further questions let me
know...
Regards,
Hans
On Tue, 2008-12-23 at 23:11 +0100, Bruno Busco wrote:
> What is the logic of this?
>
> <set field="originalPortalPageId" value="EXAMPLE"/>
> <set field="mainPortalPageId" value="MAINEXAMPLE"/>
> <set field="appheaderTemplate"
> value="component://common/webcommon/portal/appheader.ftl"/>
> <entity-and entity-name="PortalPage" list-name="getNA">
> <field-map field-name="ownerUserLoginId" value="_NA_"/>
> <field-map field-name="originalPortalPageId"
> env-name="originalPortalPageId"/>
> </entity-and>
> <entity-and entity-name="PortalPage" list-name="pages">
> <field-map field-name="originalPortalPageId"
> env-name="originalPortalPageId"/>
> <field-map field-name="ownerUserLoginId"
> env-name="userLogin.userLoginId"/>
> <order-by field-name="createdStamp"/>
> </entity-and>
> <entity-and entity-name="PortalPage" list-name="getMainPage">
> <field-map field-name="originalPortalPageId"
> env-name="mainPortalPageId"/>
> <field-map field-name="ownerUserLoginId"
> env-name="userLogin.userLoginId"/>
> </entity-and>
>
> I am trying to write a simple home application with just a
> Configurable screen starting from the example but I cannot understand
> how originalPortalPageId and mainPortalPageId play.
>
> Thank you,
> Bruno
>
>
> 2008/12/23 Bruno Busco <br...@gmail.com>:
> > Hi Hans,
> > I have not very clear the difference between mainPortalPage and
> > originalPortalPage.
> > I see that originalPortalPage is a field of the PortalPage indicating
> > where (eventually) the PortalPage has been copied from.
> > What about mainPortalPage ?
> > Could you please describe briefly?
> >
> > Thank you,
> > Bruno
> >
> > 2008/12/23 <ha...@apache.org>:
> >> Author: hansbak
> >> Date: Mon Dec 22 18:49:52 2008
> >> New Revision: 728855
> >>
> >> URL: http://svn.apache.org/viewvc?rev=728855&view=rev
> >> Log:
> >> some corrections on commit 728634
> >>
> >> Modified:
> >> ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl
> >> ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl
> >> ofbiz/trunk/framework/common/widget/PortalPageForms.xml
> >>
> > ......
> >
--
Antwebsystems.com: Quality OFBiz services for competitive prices
Re: svn commit: r728855 - in /ofbiz/trunk/framework/common: webcommon/portal/listPortalPortlets.ftl webcommon/portal/portalPage.ftl widget/PortalPageForms.xml
Posted by Bruno Busco <br...@gmail.com>.
What is the logic of this?
<set field="originalPortalPageId" value="EXAMPLE"/>
<set field="mainPortalPageId" value="MAINEXAMPLE"/>
<set field="appheaderTemplate"
value="component://common/webcommon/portal/appheader.ftl"/>
<entity-and entity-name="PortalPage" list-name="getNA">
<field-map field-name="ownerUserLoginId" value="_NA_"/>
<field-map field-name="originalPortalPageId"
env-name="originalPortalPageId"/>
</entity-and>
<entity-and entity-name="PortalPage" list-name="pages">
<field-map field-name="originalPortalPageId"
env-name="originalPortalPageId"/>
<field-map field-name="ownerUserLoginId"
env-name="userLogin.userLoginId"/>
<order-by field-name="createdStamp"/>
</entity-and>
<entity-and entity-name="PortalPage" list-name="getMainPage">
<field-map field-name="originalPortalPageId"
env-name="mainPortalPageId"/>
<field-map field-name="ownerUserLoginId"
env-name="userLogin.userLoginId"/>
</entity-and>
I am trying to write a simple home application with just a
Configurable screen starting from the example but I cannot understand
how originalPortalPageId and mainPortalPageId play.
Thank you,
Bruno
2008/12/23 Bruno Busco <br...@gmail.com>:
> Hi Hans,
> I have not very clear the difference between mainPortalPage and
> originalPortalPage.
> I see that originalPortalPage is a field of the PortalPage indicating
> where (eventually) the PortalPage has been copied from.
> What about mainPortalPage ?
> Could you please describe briefly?
>
> Thank you,
> Bruno
>
> 2008/12/23 <ha...@apache.org>:
>> Author: hansbak
>> Date: Mon Dec 22 18:49:52 2008
>> New Revision: 728855
>>
>> URL: http://svn.apache.org/viewvc?rev=728855&view=rev
>> Log:
>> some corrections on commit 728634
>>
>> Modified:
>> ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl
>> ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl
>> ofbiz/trunk/framework/common/widget/PortalPageForms.xml
>>
> ......
>
Re: svn commit: r728855 - in /ofbiz/trunk/framework/common: webcommon/portal/listPortalPortlets.ftl webcommon/portal/portalPage.ftl widget/PortalPageForms.xml
Posted by Bruno Busco <br...@gmail.com>.
Hi Hans,
I have not very clear the difference between mainPortalPage and
originalPortalPage.
I see that originalPortalPage is a field of the PortalPage indicating
where (eventually) the PortalPage has been copied from.
What about mainPortalPage ?
Could you please describe briefly?
Thank you,
Bruno
2008/12/23 <ha...@apache.org>:
> Author: hansbak
> Date: Mon Dec 22 18:49:52 2008
> New Revision: 728855
>
> URL: http://svn.apache.org/viewvc?rev=728855&view=rev
> Log:
> some corrections on commit 728634
>
> Modified:
> ofbiz/trunk/framework/common/webcommon/portal/listPortalPortlets.ftl
> ofbiz/trunk/framework/common/webcommon/portal/portalPage.ftl
> ofbiz/trunk/framework/common/widget/PortalPageForms.xml
>
......