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.