Update of 
/var/cvs/contributions/didactor2/src/education/config/builders/extended_text
In directory james.mmbase.org:/tmp/cvs-serv9656

Modified Files:
        paragraphs.xml 
Log Message:
modernized xml. I don't know why the hell 'show_title' was a string field  
(nothing less then horrible), but anyhow it's a boolan now


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/config/builders/extended_text


Index: paragraphs.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/config/builders/extended_text/paragraphs.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- paragraphs.xml      28 Sep 2007 12:21:14 -0000      1.1
+++ paragraphs.xml      17 Jan 2008 10:29:04 -0000      1.2
@@ -1,125 +1,61 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE builder PUBLIC "-//MMBase//DTD builder config 1.1//EN" 
"http://www.mmbase.org/dtd/builder_1_1.dtd";>
-<builder extends="object" maintainer="mmbase.org" name="paragraphs" 
version="1">
-  <!-- Builder configuration for paragraphs -->
-  <!-- Status of the builder: active or inactive -->
-  <status>active</status>
-  <classfile>nl.didactor.builders.DidactorBuilder</classfile>
-
-  <!-- The default maximum age of objects in a search
-used by some MMBase editors to limit the results of a search -->
+<builder
+    xmlns="http://www.mmbase.org/xmlns/builder";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://www.mmbase.org/xmlns/builder
+                        http://www.mmbase.org/xmlns/builder.xsd";
+    name="paragraphs" maintainer="mmbase.org" version="1" extends="object">
+  <class>nl.didactor.builders.DidactorBuilder</class>
   <searchage>9999</searchage>
-  <!-- Names defines the different names used in user visible parts
-Singular names are used when talking about one object (Url,Person) and plurar 
when talking about multiple objects (Urls, people).
-Names can be provided in various languages. -->
   <names>
-    <!-- singular names per language as defined by ISO 639 -->
-    <singular xml:lang="nl">Paragraph</singular>
+    <singular xml:lang="nl">Alinea</singular>
     <singular xml:lang="en">Paragraph</singular>
-    <!-- plural names per language as defined by ISO 639 -->
-    <plural xml:lang="nl">Paragraphs</plural>
+    <plural xml:lang="nl">Alinea's</plural>
     <plural xml:lang="en">Paragraphs</plural>
   </names>
-  <!-- Descriptions are ment to provide some additional clarification to an 
object.
-They are useful for GUI editors to provide helptexts.
-Descriptions can be provided in various languages. -->
   <descriptions>
-    <description xml:lang="nl">Paragraaf om te relateren aan een 
artikel</description>
+    <description xml:lang="nl">Alinea om te relateren aan een 
artikel</description>
     <description xml:lang="en">Paragraph to relate to an article</description>
-    <description xml:lang="us">Paragraph</description>
   </descriptions>
-  <!-- decsription per language as defined by ISO 639 -->
-  <!-- You can define properties to be used by the classfile.
-Properties are entered using name/value pairs.
-The actual properties available differ by class. -->
-  <properties>
-    <property name="max-nodes-from-query">99999</property>
-  </properties>
-  <!-- defines the different fields in this object
-Depending on the database, the order of the fields may be important.
-Once defined, it is a good practice to keep the same order.
-This counts especially when you convert buidler configurations using builder 
inheritance. -->
   <fieldlist>
-    <!-- field definition for field 4 : title -->
-    <field>
-      <!-- gui related -->
+    <field name="title">
       <gui>
         <guiname xml:lang="nl">Titel</guiname>
         <guiname xml:lang="en">Title</guiname>
-        <guitype>string</guitype>
       </gui>
-      <!-- editor related -->
       <editor>
         <positions>
-          <!-- position in the input area of the editor -->
-          <input>1</input>
-          <!-- position in the list area of the editor -->
           <list>1</list>
-          <!-- position in the search area of the editor -->
-          <search>1</search>
         </positions>
       </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>title</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="true" size="255" 
state="persistent">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="line">
+        <maxLength value="255" />
+      </datatype>
     </field>
-    <!-- field definition for field 5 : showtitle -->
-    <field>
-      <!-- gui related -->
+
+    <field name="showtitle">
       <gui>
         <guiname xml:lang="nl">ToonTitel</guiname>
         <guiname xml:lang="en">ShowTitle</guiname>
-        <guitype>string</guitype>
       </gui>
-      <!-- editor related -->
       <editor>
         <positions>
-          <!-- position in the input area of the editor -->
-          <input>2</input>
-          <!-- position in the list area of the editor -->
           <list>2</list>
-          <!-- position in the search area of the editor -->
-          <search>2</search>
         </positions>
       </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>showtitle</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="true" size="255" 
state="persistent">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="boolean">
+        <default value="true" />
+      </datatype>
     </field>
-    <!-- field definition for field 6 : body -->
-    <field>
-      <!-- gui related -->
+
+    <field name="body">
       <gui>
         <guiname xml:lang="nl">Body</guiname>
         <guiname xml:lang="en">Body</guiname>
-        <guitype>field</guitype>
       </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>3</input>
-          <!-- position in the list area of the editor -->
-          <list>-1</list>
-          <!-- position in the search area of the editor -->
-          <search>3</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>body</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" size="64000" 
state="persistent">STRING</type>
-      </db>
+      <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="field">
+        <maxLength value="64000" />
+      </datatype>
     </field>
   </fieldlist>
 </builder>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to