Forums / Developer / XML Text field help
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
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>
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.
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
Ekkehard Dörre
Thursday 22 April 2004 8:45:13 am
Hi,
just add in your content.ini(.php)
[CustomTagSettings]
AvailableCustomTags[]=brIsInline[br]=true
because there is already a br.tpl in folderdesign/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