Share » Forums » Developer » XML Text field help

XML Text field help

XML Text field help

Wednesday 21 April 2004 7:46:32 am - 4 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu