As far as I know, you just can't change a field type once a container instance 
has been created (because it modifies the database schema according to the 
container definition at that time).

Sometimes when we are in the early stage of development we just delete the 
existing db and start again with a fresh one.
Sometimes when we are too far in the process, we rename the field and give it 
the new type (but you loose data already entered in the previous field).

Container must be carefully defined prior starting actual development work, 
that's a critical task.

--Sylvain

-----Original Message-----
From: ghislain.cussonneau [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2005 13:24
To: jahia template list
Subject: How to change field type ?


Hi!

I've add a field named "numberKey" in a absolute container in the home model. 
This field has "Integer" type. I want to change his type to "SmallText", but it 
was'nt OK.

I've delete all containers instance in the home page. But when i wan't to add a 
new instance, the type still "Integer". How can I transform the type from 
Integer to SmallText ?

Thanks

<b>Ghislain CUSSONNEAU</b>
<i>DIRR/DPIL/CIS
CAP 44, Rue Marcel Sembat
44000 Nantes</i>
<b>02 51 84 48 80</b>
<i>CRIL Technology
Technoparc de l'Aubinière
44000 Nantes</i>
<b>02 51 89 64 50</b>

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)



Reply via email to