Author: jonesde
Date: Fri Mar 9 18:26:53 2007
New Revision: 516642
URL: http://svn.apache.org/viewvc?view=rev&rev=516642
Log:
Added a demo home page, and another page; NOTE that this still includes some
test stuff that is having some issues, like the incomplete link thingy
Added:
ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl (with
props)
ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl (with
props)
ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl (with
props)
Modified:
ofbiz/trunk/specialpurpose/cmssite/data/CmsSiteDemoData.xml
Modified: ofbiz/trunk/specialpurpose/cmssite/data/CmsSiteDemoData.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/cmssite/data/CmsSiteDemoData.xml?view=diff&rev=516642&r1=516641&r2=516642
==============================================================================
--- ofbiz/trunk/specialpurpose/cmssite/data/CmsSiteDemoData.xml (original)
+++ ofbiz/trunk/specialpurpose/cmssite/data/CmsSiteDemoData.xml Fri Mar 9
18:26:53 2007
@@ -22,13 +22,48 @@
<Content contentId="CMSS_PPOINT" contentTypeId="WEB_SITE_PUB_PT"
contentName="CMS Site Publish Point" description=""/>
<WebSiteContent webSiteId="CmsSite" contentId="CMSS_PPOINT"
webSiteContentTypeId="PUBLISH_POINT" fromDate="2001-01-01 00:00:00"/>
+ <!-- Main Decorator -->
<DataResource dataResourceId="CMSS_MAIN_DEC"
dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL"
objectInfo="component://cmssite/template/cms/MainDecorator.ftl"/>
-
+ <Content contentId="CMSS_DEC" contentTypeId="DECORATOR" contentName="CMS
Site Main Decorator" dataResourceId="CMSS_MAIN_DEC"/>
+
<DataResource dataResourceId="CMSS_HTML_HEAD"
dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL"
objectInfo="component://cmssite/template/cms/HtmlHead.ftl"/>
-
- <Content contentId="CMSS_DEC" contentTypeId="DECORATOR" contentName="CMS
Site Main Decorator" dataResourceId="CMSS_MAIN_DEC"/>
<Content contentId="CMSS_HHEAD" contentTypeId="DOCUMENT" contentName="CMS
Site HTML Head" dataResourceId="CMSS_HTML_HEAD"/>
+
+ <DataResource dataResourceId="CMSS_DEMO_HEADER"
dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL"
+ objectInfo="component://cmssite/webapp/cmssite/DemoHeader.ftl"/>
+ <Content contentId="CMSS_DEMO_HEADER" contentTypeId="DOCUMENT"
contentName="CMS Site Demo Header" dataResourceId="CMSS_DEMO_HEADER"/>
+ <DataResource dataResourceId="CMSS_DEMO_FOOTER"
dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL"
+ objectInfo="component://cmssite/webapp/cmssite/DemoFooter.ftl"/>
+ <Content contentId="CMSS_DEMO_FOOTER" contentTypeId="DOCUMENT"
contentName="CMS Site Demo Footer" dataResourceId="CMSS_DEMO_FOOTER"/>
+
<ContentAssoc contentId="CMSS_DEC" contentIdTo="CMSS_HHEAD"
contentAssocTypeId="SUB_CONTENT" mapKey="htmlHead" fromDate="2001-01-01
00:00:00"/>
+ <ContentAssoc contentId="CMSS_DEC" contentIdTo="CMSS_DEMO_HEADER"
contentAssocTypeId="SUB_CONTENT" mapKey="header" fromDate="2001-01-01
00:00:00"/>
+ <ContentAssoc contentId="CMSS_DEC" contentIdTo="CMSS_DEMO_FOOTER"
contentAssocTypeId="SUB_CONTENT" mapKey="footer" fromDate="2001-01-01
00:00:00"/>
+
+ <!-- demo home page -->
+ <DataResource dataResourceId="CMSS_DEMO_HOME"
dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL"
+ objectInfo="component://cmssite/webapp/cmssite/DemoHome.ftl"/>
+ <Content contentId="CMSS_DEMO_HOME" contentTypeId="DOCUMENT"
decoratorContentId="CMSS_DEC"
+ contentName="CMS Site Demo Home Page" dataResourceId="CMSS_DEMO_HOME"/>
+ <ContentAssoc contentId="CMSS_PPOINT" contentIdTo="CMSS_DEMO_HOME"
contentAssocTypeId="SUB_CONTENT" fromDate="2001-01-01 00:00:00"/>
+ <WebSiteContent webSiteId="CmsSite" contentId="CMSS_DEMO_HOME"
webSiteContentTypeId="DEFAULT_PAGE" fromDate="2001-01-01 00:00:00"/>
+
+ <!-- yet another demo page -->
+ <DataResource dataResourceId="CMSS_DEMO_PAGE1"
dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FTL"/>
+ <ElectronicText dataResourceId="CMSS_DEMO_PAGE1">
+ <textData><![CDATA[
+ <div>Sub-content 1: ${thisContent.subcontent.sub1}</div>
+ <div>Sub-content 2: ${thisContent.subcontent.sub2}</div>
+ ]]></textData>
+ </ElectronicText>
+ <Content contentId="CMSS_DEMO_PAGE1" contentTypeId="DOCUMENT"
decoratorContentId="CMSS_DEC" contentName="CMS Site Demo Page 1"
dataResourceId="CMSS_DEMO_PAGE1"/>
+ <ContentAssoc contentId="CMSS_PPOINT" contentIdTo="CMSS_DEMO_PAGE1"
contentAssocTypeId="SUB_CONTENT" fromDate="2001-01-01 00:00:00"/>
+ <DataResource dataResourceId="CMSS_DEMO_PAGE1_1"
dataResourceTypeId="SHORT_TEXT" objectInfo="Sub-content 1 of Sub-content 1"/>
+ <Content contentId="CMSS_DEMO_PAGE1_1" contentTypeId="DOCUMENT"
contentName="CMS Site Demo Page 1_1" dataResourceId="CMSS_DEMO_PAGE1_1"/>
+ <ContentAssoc contentId="CMSS_DEMO_PAGE1" contentIdTo="CMSS_DEMO_PAGE1_1"
contentAssocTypeId="SUB_CONTENT" mapKey="sub1" fromDate="2001-01-01 00:00:00"/>
+ <DataResource dataResourceId="CMSS_DEMO_PAGE1_2"
dataResourceTypeId="SHORT_TEXT" objectInfo="Sub-content 2 of Sub-content 1"/>
+ <Content contentId="CMSS_DEMO_PAGE1_2" contentTypeId="DOCUMENT"
contentName="CMS Site Demo Page 1_2" dataResourceId="CMSS_DEMO_PAGE1_2"/>
+ <ContentAssoc contentId="CMSS_DEMO_PAGE1" contentIdTo="CMSS_DEMO_PAGE1_2"
contentAssocTypeId="SUB_CONTENT" mapKey="sub2" fromDate="2001-01-01 00:00:00"/>
</entity-engine-xml>
Added: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl?view=auto&rev=516642
==============================================================================
--- ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl (added)
+++ ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl Fri Mar 9
18:26:53 2007
@@ -0,0 +1,22 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<div>
+This is the footer!
+</div>
+<hr/>
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoFooter.ftl
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl?view=auto&rev=516642
==============================================================================
--- ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl (added)
+++ ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl Fri Mar 9
18:26:53 2007
@@ -0,0 +1,22 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<div>
+This is the header!
+</div>
+<hr/>
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHeader.ftl
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl?view=auto&rev=516642
==============================================================================
--- ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl (added)
+++ ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl Fri Mar 9
18:26:53 2007
@@ -0,0 +1,24 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<div>
+<h1>Welcome to the Home page.</h1>
+<div><a href="/cmssite/cms/CMSS_DEMO_PAGE1">Demo Page 1</a></div>
+<div><a href="${thisContent.content.CMSS_DEMO_PAGE1.link}">Demo Page
1</a></div>
+</div>
+<hr/>
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/cmssite/webapp/cmssite/DemoHome.ftl
------------------------------------------------------------------------------
svn:mime-type = text/plain