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 <[hidden email]>: > 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 > |
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 <[hidden email]>: > 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 <[hidden email]>: >> 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 >> > ...... > |
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 <[hidden email]>: > > 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 <[hidden email]>: > >> 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 |
Free forum by Nabble | Edit this page |