103 Posts
Osep45
8 years ago
5
Topic

Hello,

I created a field "text zone" :
- Lenght: 5000 characters
- Default: no
- Storage: Type "Varchar2048"

In the "dynamic value" panel, I wish to enter a string of more than 300 characters.
=> Impossible: my string is broken to 255 characters !!!

When I enter the string in the administration form (in a item), it may well save.
But when I return in the Content Type> Panel 2: Dynamic value: it displayed only the first 255 characters.

How to enter a dynamic value with more than 255 characters?

Best regards,


Osep45

-------------------------

Bonjour,

J'ai crée un champ "zone de texte" :

- taille : 5000 caractères

- valeur par défaut : aucune

- storage : type "Varchar2048"

Dans le panneau "valeur dynamique", je souhaite entrer une chaine de caractères de plus de 300 caractères.

=> Impossible : ma chaine est coupée à 255 caractères !!!

Quand j'entre la chaine de caractères dans le formulaire administration, elle peut bien s'enregistrer.

Mais quand je la rentre dans Type de contenu > panneau 2 : Valeur dynamique : elle est coupée à 255 caractères.

Comment entrer une valeur dynamique de plus de 255 caractères ?

En vous remerciant par avance,

Osep45

Get a VIP membership
103 Posts
Osep45
8 years ago
1
Level 1

Any ideas ?

1283 Posts
Bucklash
8 years ago
0
Level 2

Hi

How many characters can be stored in the 'live' db column?

It's not actually 'live', can't remember right now proper location....

4229 Posts
Kadministrator
8 years ago
2
Level 1

Live value is basically the same thing as default value, it is stored in live_value column of cck_core_type_field and is varchar(255) - this is where your limitation comes from. You can use default value, which has this limitation set to 2048.

103 Posts
Osep45
8 years ago
1
Level 2

No, the default value of the field has the same limitation : 255 characters... not more...

Another solution ?

1283 Posts
Bucklash
8 years ago
0
Level 3

Hi

Not sure how to put this in words...

... but can't you have a fieldA with valueA, fieldB with valueB etc...

Then, if live value is 1 then show fieldA, if live value is 2, show fieldB 

I am not sure what it is you need exactly, but isn't that a more usual way to go?

Bucklash

Get a VIP membership