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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:36:28
Script start
Timing: Jan 18 2025 11:36:28
Module start 'layout'
Timing: Jan 18 2025 11:36:28
Module start 'content'
Timing: Jan 18 2025 11:36:28
Module end 'content'
Timing: Jan 18 2025 11:36:28
Script end

Main resources:

Total runtime0.6072 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.3281153.4609
Module start 'layout' 0.00750.0043 742.789139.3906
Module start 'content' 0.01180.5940 782.1797533.5313
Module end 'content' 0.60580.0014 1,315.710912.1563
Script end 0.6072  1,327.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5878160.0002
Check MTime0.00130.2130160.0001
Mysql Total
Database connection0.00120.192310.0012
Mysqli_queries0.552691.0046570.0097
Looping result0.00060.0938550.0000
Template Total0.572494.320.2862
Template load0.00210.338620.0010
Template processing0.570493.927220.2852
Template load and register function0.00030.048310.0003
states
state_id_array0.00180.289210.0018
state_identifier_array0.00130.206420.0006
Override
Cache load0.00170.2759210.0001
Sytem overhead
Fetch class attribute can translate value0.00170.278620.0008
Fetch class attribute name0.00160.265640.0004
XML
Image XML parsing0.00070.111020.0003
class_abstraction
Instantiating content class attribute0.00000.002040.0000
General
dbfile0.00110.1740160.0001
String conversion0.00000.002240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs