XML Text field help

Author Message

Glenn MacGregor

Wednesday 21 April 2004 7:46:32 am

Hi All (again)...

Thanks for the info on the section_id. Now I have a problem using XML Text field. I put in html and some of it stays after I hit the "Send for publish" while other tags disappear.

I am looking to underline some text in the XML Text field, using the html underline tag doesn't work. I also tried adding a entry to my stylesheet ,
<i>
.underlineText
{
text-decoration: underline;
}
</i>

And in the XML Text field I added (around the line to underline) the following:
<i>
<div class="underlineText">
TEXT TO UNDERLINE
</div>
</i>

Hit the "Send for Publishing" and it is gone.

Is there anyway to do this???

Thanks again

Glenn MacGregor

Alex Jones

Wednesday 21 April 2004 8:03:28 am

Yup, this is possible. You need to create a custom tag though. See http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags for information about creating them.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Glenn MacGregor

Wednesday 21 April 2004 8:48:21 am

Alex,

Thanks! Going over the docs I saw the location of all the built-in tags that the XML Text field supports in 'design/standard/templates/content/datatype/view/ezxmltags/' directory.
In there I see line.tpl which contains:
{$content} <br />

Does this mean that in any XML Text field I should be able to put the following

<line>THIS IS A TEST</line>

or

<custom name="line">THIS IS A TEST</custom>

It is not letting me do either.

Alex Jones

Wednesday 21 April 2004 9:00:37 am

To be honest, I'm not sure about the line tag, it may just be used automatically to deal with a single carriage return in XML Text Fields. It isn't listed as a tag on http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/tags

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ekkehard Dörre

Thursday 22 April 2004 8:45:13 am

Hi,

just add in your content.ini(.php)

[CustomTagSettings]

AvailableCustomTags[]=br
IsInline[br]=true

because there is already a br.tpl in folder
design/standard/templates/content/datatype/view/ezxmltags/

Use in XML-Field:

<custom name='br'></custom>
makes

<br />

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 19 2025 04:34:29
Script start
Timing: Jan 19 2025 04:34:29
Module start 'layout'
Timing: Jan 19 2025 04:34:29
Module start 'content'
Timing: Jan 19 2025 04:34:30
Module end 'content'
Timing: Jan 19 2025 04:34:30
Script end

Main resources:

Total runtime0.7972 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.0547152.6094
Module start 'layout' 0.00430.0035 741.664139.4141
Module start 'content' 0.00780.7876 781.0781606.0156
Module end 'content' 0.79540.0017 1,387.093816.1875
Script end 0.7971  1,403.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3897160.0002
Check MTime0.00130.1672160.0001
Mysql Total
Database connection0.00050.066610.0005
Mysqli_queries0.730991.6865650.0112
Looping result0.00080.0944630.0000
Template Total0.762895.720.3814
Template load0.00240.299820.0012
Template processing0.760495.386820.3802
Template load and register function0.00020.029810.0002
states
state_id_array0.00130.163410.0013
state_identifier_array0.00100.121320.0005
Override
Cache load0.00210.2662540.0000
Sytem overhead
Fetch class attribute can translate value0.00080.100830.0003
Fetch class attribute name0.00120.156670.0002
XML
Image XML parsing0.00100.125830.0003
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00080.1044220.0000
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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs