Share » Forums » Setup & design » Help with editor

Help with editor

Help with editor

Monday 13 December 2004 12:18:46 pm - 2 replies

Author Message

Mark Marsiglio

Monday 13 December 2004 7:09:14 pm

You should create a new inline custom tag. The XML format does not allow text color.

The custom tag should probably just specify a span tag which you should apply a CSS style to to change the color.

To add a custom tag:
-Add a new custom .tpl file in the sites override folder - design/SITENAME/override/templates/content/datatype/view/ezxmltags/ (If this folder does not exist, create it.)
-Name your custom tag by adding it to the content.ini.append in both the main and admin siteaccess settings folders. If a content.ini.append does not exist, create one and add the line

[CustomTagSettings]
AvailableCustomTags[]=tagname

-Assign the tag to content by wrapping the content in the <custom> tag, with attribute name='tagname'

<custom name='tagname'>Text to which the tag will be applied</custom>

Look at the factbox.tpl in the standard or base design folder for an example of the syntax for the new .tpl

Good luck...

Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Marsiglio

Monday 13 December 2004 7:11:03 pm

I should mention that if you use a text field instead of xml text field you will be able to apply the font color tag, but this method does not separate design from content so it is not preferred for standards compliance.

There are some threads about this on this forum if you want to read a little more on the differences....

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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

36 542 Users on board!

Forums menu