svn commit: r493431 - in /ofbiz/trunk/applications/ecommerce: data/DemoWebSitePublishPointData.xml widget/CommonScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r493431 - in /ofbiz/trunk/applications/ecommerce: data/DemoWebSitePublishPointData.xml widget/CommonScreens.xml

jonesde
Author: jonesde
Date: Fri Jan  5 23:13:42 2007
New Revision: 493431

URL: http://svn.apache.org/viewvc?view=rev&rev=493431
Log:
Added little demo of 2 content sections included on the policies page

Modified:
    ofbiz/trunk/applications/ecommerce/data/DemoWebSitePublishPointData.xml
    ofbiz/trunk/applications/ecommerce/widget/CommonScreens.xml

Modified: ofbiz/trunk/applications/ecommerce/data/DemoWebSitePublishPointData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/data/DemoWebSitePublishPointData.xml?view=diff&rev=493431&r1=493430&r2=493431
==============================================================================
--- ofbiz/trunk/applications/ecommerce/data/DemoWebSitePublishPointData.xml (original)
+++ ofbiz/trunk/applications/ecommerce/data/DemoWebSitePublishPointData.xml Fri Jan  5 23:13:42 2007
@@ -66,7 +66,7 @@
 
     <Content contentId="WebStoreFACTOID" contentTypeId="WEB_SITE_PUB_PT" ownerContentId="" contentName="Factoids" description="Factoids" createdDate="2004-07-05 12:00:00.000" createdByUserLogin="admin"/>
 
-    <!-- An example of sub-content to be rendered by the root contentId (WebStoreCONTENT) map-key -->
+    <!-- An example of sub-content to be rendered by the root contentId (WebStoreCONTENT) and map-key (policies) -->
     <DataResource dataResourceId="STORE_POLICIES" dataResourceTypeId="ELECTRONIC_TEXT" mimeTypeId="text/html" localeString="en_US" isPublic="Y" dataResourceName="Store Policies"/>
     <ElectronicText dataResourceId="STORE_POLICIES">
         <textData><![CDATA[
@@ -76,7 +76,7 @@
                 <ol>
                     <li>If you send us money we'll keep it. So DON'T SEND US MONEY!</li>
                     <li>We will never fulfill anything you order here. In fact, we haven't even bothered to create any of these products. They are all just made up.</li>
-                    <li>It might surprise you, but this <bold>is</bold> a for-profit store. We make money by selling you're contact information. You'd be surprised by how many suckers put in real personal data! We make tons on it! (NOT!)</li>
+                    <li>It might surprise you, but this <bold>is</bold> a for-profit store. We make money by selling you're contact information. You'd be surprised by how many suckers put in real personal data! We make tons on it! (NOT!) Don't worry, this is just a joke. If you've entered anything it's safe with us...</li>
                 </ol>
             </div>
         ]]></textData>
@@ -84,5 +84,22 @@
     <Content contentId="STORE_POLICIES" contentTypeId="DOCUMENT" ownerContentId="WebStoreCONTENT" dataResourceId="STORE_POLICIES"
         contentName="Store Policies" description="Store Policies" mimeTypeId="text/html" localeString="en_US" createdDate="2001-05-13 12:00:00.000" createdByUserLogin="admin"/>
     <ContentAssoc contentId="WebStoreCONTENT" contentIdTo="STORE_POLICIES" mapKey="policies" contentAssocTypeId="SUBSITE"
+        fromDate="2001-05-13 12:00:00.000" createdDate="2001-05-13 12:00:00.000" createdByUserLogin="admin"/>
+    <DataResource dataResourceId="STORE_POLICIES2" dataResourceTypeId="ELECTRONIC_TEXT" mimeTypeId="text/html" localeString="en_US" isPublic="Y" dataResourceName="Store Policies"/>
+    <ElectronicText dataResourceId="STORE_POLICIES2">
+        <textData><![CDATA[
+            <div class="tabletext">These next policies are meaningless, and are really just used to demonstrate having 2 content sections on the page:</div>
+            <div class="tabletext">
+                <ol>
+                    <li>Item 1</li>
+                    <li>Item 2</li>
+                    <li>Item 3</li>
+                </ol>
+            </div>
+        ]]></textData>
+    </ElectronicText>
+    <Content contentId="STORE_POLICIES2" contentTypeId="DOCUMENT" ownerContentId="WebStoreCONTENT" dataResourceId="STORE_POLICIES2"
+        contentName="Store Policies" description="Store Policies" mimeTypeId="text/html" localeString="en_US" createdDate="2001-05-13 12:00:00.000" createdByUserLogin="admin"/>
+    <ContentAssoc contentId="WebStoreCONTENT" contentIdTo="STORE_POLICIES2" mapKey="policies2" contentAssocTypeId="SUBSITE"
         fromDate="2001-05-13 12:00:00.000" createdDate="2001-05-13 12:00:00.000" createdByUserLogin="admin"/>
 </entity-engine-xml>

Modified: ofbiz/trunk/applications/ecommerce/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/widget/CommonScreens.xml?view=diff&rev=493431&r1=493430&r2=493431
==============================================================================
--- ofbiz/trunk/applications/ecommerce/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/ecommerce/widget/CommonScreens.xml Fri Jan  5 23:13:42 2007
@@ -201,6 +201,7 @@
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">
                         <sub-content content-id="WebStoreCONTENT" map-key="policies"/>
+                        <sub-content content-id="WebStoreCONTENT" map-key="policies2"/>
                     </decorator-section>
                 </decorator-screen>
             </widgets>