"S.A. de Heer" <[EMAIL PROTECTED]> wrote:
> I have a problem with a customized builder, we altered the news builder to
> contain a datetime string(20). We customized the news.xml altered the
> database and restarted mmbase. In the editors there is no problem when you
> edit a news item and fill the datetime field but when you wish to do the
> same in a jsp page with tags it results in a unknow fielddef error. Does
> anybody have an idea where to search for the problem?

So you do edit with the scan editors? Do the jsp-editors not work either
(they use tags).

Did you recompile the jsp?

I'll attach our news.xml, which contains a date as well, and which does work.


 Michiel


-- 
Michiel Meeuwissen 
Mediapark, C 107 tel. +31 (0)35 6772979


<?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 maintainer="mmbase.org" version="0" extends="object">

<!-- <status>
	what is the status of this builder options : active or inactive
-->
<status>active</status>

<searchage>14</searchage>

<!-- <names>
	names defines the different names used in user visible parts, singular for
	for talking about 1 object (Url,Person) and plurar for talking about multiple
	<Urls, people).
>-->
<names>
	<!-- singles per language as defined by ISO 639 -->
	<singular xml:lang="nl">NieuwsItem</singular>
	<singular xml:lang="fr">Nouvelle</singular>
	<singular xml:lang="en">NewsItem</singular>
	<!-- multiple per language as defined by ISO 639 -->
	<plural xml:lang="nl">NieuwsItems</plural>
	<plural xml:lang="fr">Nouvelles</plural>
	<plural xml:lang="en">NewsItems</plural>
</names>

<!-- <descriptions>
	small description of the builder for human reading
-->
<descriptions>
<!-- descriptions per language as defined by ISO 639  -->
	<description xml:lang="nl">Nieuws item</description>
	<description xml:lang="fr">Nouvelles</description>
	<description xml:lang="en">News item</description>
</descriptions>

<!-- <fieldlist>
	 defines the different fields in this object, be carefull the order is important
	once defined keep them in the same order.
	If you use number and owner (the 2 default fields, please check the docs for this)
-->
<fieldlist>
	<!-- POS 3 : <field> 'title'  -->
	<field>
		<!-- gui related -->
		<gui>
			<guiname xml:lang="fr">Titre</guiname>
			<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 list area of the editor -->
				<list>1</list>
				<!-- position in 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 state="persistent" size="255" notnull="true" key="false">STRING</type>
		</db>
	</field>

	<!-- POS 4 : <field> 'subtitle'  -->
	<field>
		<!-- gui related -->
		<gui>
			<guiname xml:lang="fr">Sous-titre</guiname>
			<guiname xml:lang="nl">SubTitel</guiname>
			<guiname xml:lang="en">SubTitle</guiname>
			<guitype>string</guitype>
		</gui>
		<!-- editor related  -->
		<editor>
			<positions>
				<!-- position in the input area of the editor -->
				<input>2</input>
				<!-- position in list area of the editor -->
				<list>-1</list>
				<!-- position in search area of the editor -->
				<search>2</search>
			</positions>
		</editor>
		<!-- database related  -->
		<db>
			<!-- name of the field in the database -->
			<name>subtitle</name>
			<!-- MMBase datatype and demands on it -->
			<type state="persistent" size="255" notnull="false" key="false">STRING</type>
		</db>
	</field>

	<!-- POS 5 : <field> 'intro'  -->
	<field>
		<!-- gui related -->
		<gui>
			<guiname xml:lang="fr">Intro</guiname>
			<guiname xml:lang="nl">Intro</guiname>
			<guiname xml:lang="en">Intro</guiname>
			<guitype>field</guitype>
		</gui>
		<!-- editor related  -->
		<editor>
			<positions>
				<!-- position in the input area of the editor -->
				<input>3</input>
				<!-- position in list area of the editor -->
				<list>-1</list>
				<!-- position in search area of the editor -->
				<search>3</search>
			</positions>
		</editor>
		<!-- database related  -->
		<db>
			<!-- name of the field in the database -->
			<name>intro</name>
			<!-- MMBase datatype and demands on it -->
			<type state="persistent" size="2048" notnull="false" key="false">STRING</type>
		</db>
	</field>
	<!-- POS 6 : <field> 'body'  -->
	<field>
		<!-- gui related -->
		<gui>
			<guiname xml:lang="fr">Texte</guiname>
			<guiname xml:lang="nl">Tekst</guiname>
			<guiname xml:lang="en">Text</guiname>
			<guitype>field</guitype>
		</gui>
		<!-- editor related  -->
		<editor>
			<positions>
				<!-- position in the input area of the editor -->
				<input>4</input>
				<!-- position in list area of the editor -->
				<list>-1</list>
				<!-- position in search area of the editor -->
				<search>4</search>
			</positions>
		</editor>
		<!-- database related  -->
		<db>
			<!-- name of the field in the database -->
			<name>body</name>
			<!-- MMBase datatype and demands on it -->
			<type state="persistent" size="64000" notnull="false" key="false">STRING</type>
		</db>
	</field>

	<!-- POS 7 : <field> 'date'  -->
	<field>
		<!-- gui related -->
		<gui>
			<guiname xml:lang="nl">Datum</guiname>
			<guiname xml:lang="en">Date</guiname>
			<guitype>eventtime</guitype>
		</gui>
		<!-- editor related  -->
		<editor>
			<positions>
				<!-- position in the input area of the editor -->
				<input>5</input>
				<!-- position in list area of the editor -->
				<list>-1</list>
				<!-- position in search area of the editor -->
				<search>5</search>
			</positions>
		</editor>
		<!-- database related  -->
		<db>
			<!-- name of the field in the database -->
			<name>date</name>
			<!-- MMBase datatype and demands on it -->
			<type state="persistent" notnull="false" key="false">INTEGER</type>
		</db>
	</field>



</fieldlist>

</builder>

Reply via email to