Xml block max lines/characters

Author Message

Fou Jino

Monday 23 May 2011 6:02:13 am

Hi everyone,

If it's possible to specified a max characters or lines of a xml block datatype like the text line datatype ?

Thanks in advance !

Foujino ~ http://www.foujino-blog.be

Marko Žmak

Monday 23 May 2011 6:38:04 am

Not by default.

You could do an extension that does it (via content edit handlers), but think about what it implies. XML block can have a a lot of different formating and tags (bold, italic, links, images, tables...).

You could be abkle to count the characters (by stripping away the tags) but how would you count the lines with all this?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 01:06:18
Script start
Timing: Jan 18 2025 01:06:18
Module start 'layout'
Timing: Jan 18 2025 01:06:18
Module start 'content'
Timing: Jan 18 2025 01:06:18
Module end 'content'
Timing: Jan 18 2025 01:06:18
Script end

Main resources:

Total runtime0.0296 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 591.0938152.6250
Module start 'layout' 0.00640.0045 743.718839.4688
Module start 'content' 0.01090.0162 783.187589.2422
Module end 'content' 0.02710.0025 872.429730.2891
Script end 0.0295  902.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00289.6096140.0002
Check MTime0.00134.5170140.0001
Mysql Total
Database connection0.00082.874010.0008
Mysqli_queries0.004214.046730.0014
Looping result0.00000.070910.0000
Template Total0.00196.610.0019
Template load0.00113.604410.0011
Template processing0.00092.958710.0009
Override
Cache load0.00062.086410.0006
General
dbfile0.005819.449780.0007
String conversion0.00000.030640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs