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

eZ debug

Timing: Jan 18 2025 11:08:23
Script start
Timing: Jan 18 2025 11:08:23
Module start 'content'
Timing: Jan 18 2025 11:08:24
Module end 'content'
Timing: Jan 18 2025 11:08:24
Script end

Main resources:

Total runtime0.7650 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.1406180.8359
Module start 'content' 0.00670.6144 769.9766538.2188
Module end 'content' 0.62110.1438 1,308.1953332.7500
Script end 0.7649  1,640.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5496210.0002
Check MTime0.00160.2081210.0001
Mysql Total
Database connection0.00080.098710.0008
Mysqli_queries0.690990.30771940.0036
Looping result0.00220.28611920.0000
Template Total0.729495.320.3647
Template load0.00210.271320.0010
Template processing0.727395.071320.3637
Template load and register function0.00020.023910.0002
states
state_id_array0.00180.230310.0018
state_identifier_array0.00100.133920.0005
Override
Cache load0.00170.2239210.0001
Sytem overhead
Fetch class attribute can translate value0.00220.288730.0007
Fetch class attribute name0.00090.123540.0002
XML
Image XML parsing0.00090.113830.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00470.6169270.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs