Help with editor

Author Message

Valenti salas

Monday 13 December 2004 12:18:46 pm

hi,

I'm trying to find the option to change the font color in the editor but i can't find it. Is there any option to change it? maybe I must use the 'custom tag' ? and if this is true, where i can find information about custom tags in the editor?

Thanks.

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

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 31 2025 01:24:16
Script start
Timing: Jan 31 2025 01:24:16
Module start 'layout'
Timing: Jan 31 2025 01:24:16
Module start 'content'
Timing: Jan 31 2025 01:24:16
Module end 'content'
Timing: Jan 31 2025 01:24:16
Script end

Main resources:

Total runtime0.0229 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0313151.1953
Module start 'layout' 0.00500.0041 739.2266220.6563
Module start 'content' 0.00910.0122 959.8828997.8984
Module end 'content' 0.02120.0017 1,957.781333.9922
Script end 0.0229  1,991.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.0556140.0002
Check MTime0.00104.4721140.0001
Mysql Total
Database connection0.00083.697710.0008
Mysqli_queries0.002510.996330.0008
Looping result0.00000.057210.0000
Template Total0.00115.010.0011
Template load0.00093.793310.0009
Template processing0.00031.150810.0003
Override
Cache load0.00062.433610.0006
General
dbfile0.00031.144580.0000
String conversion0.00000.034340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs