<br> in Textaereas

Author Message

Bernhard Hyden

Thursday 14 August 2003 5:25:05 am

Hi,
Is it possible to turn \n into <br> in the Backoffice, or is it a bug (feature)?

thanks,
Bernhard

Jan Borsodi

Tuesday 26 August 2003 6:32:20 am

I'm guessing you are talking about object edits (article, folders etc.)?

If so all \n (endlines) are treated specially in the xml fields, for instance two endlines will create a new paragraph. See this for more doc on the xml field.
http://www.ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezxmltext

For all other strings you can use the nl2br template operator which turns newlines (\n) into breaks (br), or if you trying eZ publish 3.2 you should use the break operator instead.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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:37:38
Script start
Timing: Jan 18 2025 11:37:38
Module start 'layout'
Timing: Jan 18 2025 11:37:38
Module start 'content'
Timing: Jan 18 2025 11:37:39
Module end 'content'
Timing: Jan 18 2025 11:37:39
Script end

Main resources:

Total runtime0.7136 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 589.9531152.6094
Module start 'layout' 0.00980.0034 742.562539.4063
Module start 'content' 0.01320.6985 781.9688521.1016
Module end 'content' 0.71170.0018 1,303.07038.1953
Script end 0.7135  1,311.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4598160.0002
Check MTime0.00130.1782160.0001
Mysql Total
Database connection0.00130.184810.0013
Mysqli_queries0.665393.2360540.0123
Looping result0.00060.0859520.0000
Template Total0.674894.620.3374
Template load0.00200.277620.0010
Template processing0.672894.292920.3364
Template load and register function0.00040.060510.0004
states
state_id_array0.00190.267410.0019
state_identifier_array0.00080.111120.0004
Override
Cache load0.00160.2280130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.129620.0005
Fetch class attribute name0.00160.221630.0005
XML
Image XML parsing0.00060.078220.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00090.1215170.0001
String conversion0.00000.001240.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs