Update of /var/cvs/speeltuin/andre/mmsite/config/applications/MMSite/builders
In directory 
james.mmbase.org:/tmp/cvs-serv13421/config/applications/MMSite/builders

Modified Files:
        articles.xml templates.xml 
Log Message:
rewrote a few builders to newer format, additional fields for articles


See also: 
http://cvs.mmbase.org/viewcvs/speeltuin/andre/mmsite/config/applications/MMSite/builders


Index: articles.xml
===================================================================
RCS file: 
/var/cvs/speeltuin/andre/mmsite/config/applications/MMSite/builders/articles.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- articles.xml        11 Feb 2009 21:06:13 -0000      1.1
+++ articles.xml        24 Apr 2009 15:06:37 -0000      1.2
@@ -129,10 +129,31 @@
       </datatype>
     </field>
 
+       <field name="show">
+         <descriptions>
+               <description xml:lang="nl">Tonen of niet tonen. Dat is de 
vraag.</description>
+               <description xml:lang="en">To show or not to show. That is the 
question.</description>
+         </descriptions>
+         <gui>
+               <guiname xml:lang="nl">Tonen</guiname>
+               <guiname xml:lang="en">Show</guiname>
+         </gui>
+         <editor>
+               <positions>
+                 <input>92</input>
+                 <list>92</list>
+                 <search>92</search>
+               </positions>
+         </editor>
+         <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="onoff">
+        <default value="true" />
+         </datatype>
+       </field>
+
     <field name="online">
       <descriptions>
-        <description xml:lang="nl">Datum en tijd waarop de content getoond 
moet worden</description>
-        <description xml:lang="en">Date and time to display this 
content</description>
+        <description xml:lang="nl">Datum en tijd waarop dit getoond moet 
worden</description>
+        <description xml:lang="en">Date and time to display this 
item</description>
       </descriptions>
       <gui>
         <guiname xml:lang="nl">On-line op</guiname>
@@ -152,10 +173,33 @@
       </datatype>
     </field>
 
+    <field name="offline">
+      <descriptions>
+        <description xml:lang="nl">Datum en tijd waarop dit niet meer getoond 
moet worden</description>
+        <description xml:lang="en">Date and time to end displaying this 
item</description>
+      </descriptions>
+      <gui>
+        <guiname xml:lang="nl">Off-line op</guiname>
+        <guiname xml:lang="en">Offline on</guiname>
+      </gui>
+      <editor>
+        <positions>
+          <input>93</input>
+          <list>93</list>
+          <search>93</search>
+        </positions>
+      </editor>
+      <datatype base="datetime" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <default value="today" />
+        <minInclusive enforce="never" value="today - 10 year" />
+        <maxInclusive enforce="never" value="today + 99 year" />
+      </datatype>
+    </field>
+
     <!-- created -->
     <field name="created" readonly="true">
       <descriptions>
-        <description xml:lang="en">Creation date of the item</description>
+        <description xml:lang="en">Creation date of this item</description>
         <description xml:lang="nl">Creatiedatum van het item</description>
       </descriptions>
       <gui>


Index: templates.xml
===================================================================
RCS file: 
/var/cvs/speeltuin/andre/mmsite/config/applications/MMSite/builders/templates.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- templates.xml       17 Apr 2009 18:58:47 -0000      1.2
+++ templates.xml       24 Apr 2009 15:06:37 -0000      1.3
@@ -15,7 +15,8 @@
   </descriptions>
 
   <fieldlist>
-    <field>
+    
+    <field name="title">
       <descriptions>
         <description xml:lang="en">Title or name of the template</description>
         <description xml:lang="nl">Titel of naam van de template</description>
@@ -31,14 +32,13 @@
           <search>1</search>
         </positions>
       </editor>
-      <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes"; />
-      <db>
-        <name>title</name>
-        <type state="persistent" size="255" notnull="true" 
key="false">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="line">
+        <required value="true"/>
+        <maxLength value="255"/>
+      </datatype>
     </field>
 
-    <field>
+    <field name="description">
       <descriptions>
         <description xml:lang="en">Description of the template</description>
         <description xml:lang="nl">Beschrijving van de template</description>
@@ -54,14 +54,12 @@
           <search>3</search>
         </positions>
       </editor>
-      <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes"; />
-      <db>
-        <name>description</name>
-        <type state="persistent" size="1024" notnull="false" 
key="false">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="field">
+        <maxLength value="1024" />
+      </datatype>
     </field>
     
-    <field>
+    <field name="url">
       <descriptions>
         <description xml:lang="en">Location of the template on the 
filesystem</description>
         <description xml:lang="nl">Lokatie van de template op het 
filesysteem</description>
@@ -77,11 +75,9 @@
           <search>4</search>
         </positions>
       </editor>
-      <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes"; />
-      <db>
-        <name>url</name>
-        <type state="persistent" size="255" notnull="true" 
key="false">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="line">
+        <maxLength value="255" />
+      </datatype>
     </field>
        
        <field name="mimetype">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to