Forums / General / Length of text field and text line

Length of text field and text line

Author Message

Thomas DELHOMENIE

Thursday 16 September 2004 7:15:14 am

Hi,

I'm using native classes of eZpublish (Article, Link,...)and i'd like to konw the maximum length of a text line and of a text field. Where can I find that kind of information ?

I'd like to konw too what kind of image (png, jpeg,...) can be selected for an Image attribute ?

Thanks

Tom

Marco Zinn

Tuesday 21 September 2004 1:34:58 pm

Hi,
i think, the max length of a text line and the length (and "height") of a text area is defined in the class setup. Go to the Admin Site, then Setup -> (Advanced?) -> Classes and view the Article Class.
Usually, a textline is limited to 255 by default.

For the images types: This depends on your image handler. Usually, if you use a current PHP version with the GD library, version 2.0, ez can handle jpeg, gif, png and probably some other standard image formats; Just try it ;)
Note: due do licencing issue, the GD 2.0 extension does not support writing of GIF images. That usually means, that you can use GIFs (upload them), but they will be converted to PNGs, as GD is "not allowed" to write GIFs.
You may changed all those conversion rules in some ini file (image.ini), but if the image system works, don't change that ;)

Marco
http://www.hyperroad-design.com

Thomas DELHOMENIE

Wednesday 29 September 2004 12:05:15 am

Thank you for answering. I'm ok for the textline and image attribute now.
But I have another question.
When I create a new classe and want to had a textarea attribute, I'm asked to set the number of lines. Is it the max number of lines ? If so, the max I can set is 25, does it mean it won't be possible to write a text which has more than 25 lines ?

Tom