xml block text formating

Author Message

André R.

Sunday 05 February 2006 4:09:56 pm

One of our site editors asked me how he could center the text or color it red recently, and I ended up asking him to make it a level 5 heading if he wanted center and level 6 if he wanted red. changing some css and voila..

But the thing is, shouldn't that kind of text formating be possible in OE ??
Alt: How do I add seletable css classes to OE ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Mark Marsiglio

Sunday 05 February 2006 4:48:17 pm

I spend a lot of time explaining the theory of the "separate of design and content" and the benefits of structural markup rather than design-based markup to my clients.

I feel your pain, but the best thing to do is convince them that it is better in the long run if they use the structure to define the important bits of content (emphasis, lists, headings, etc).

In the instances where this solution does not suffice, I create custom tags for clients that need special formatting.

Your solution if using h5/h6 is ok, but if is a bit counterintuitive from a structural markup standpoint. If those items are not really headers, this might cause problems with resuing content in the future.

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

André R.

Sunday 05 February 2006 4:55:57 pm

I agree, but how do you sugest setting up so that they can make text centered or red for instance ??

using h5 / h6 was only a temporary solution because I know those tags are not in use on our site.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Mark Marsiglio

Sunday 05 February 2006 5:27:55 pm

Custom tags are the best solution for this.

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/datatypes/xml_block/custom_tags

Not sure where the docs are, but I know you have to add some lines in content.ini and add a template, as well as a stylesheet to do the red/center.

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

Mark Marsiglio

Sunday 05 February 2006 6:20:22 pm

You could also use this extension

http://ez.no/community/contribs/applications/fckeditor_transparent_integration

and allow your users to put HTML code into the content.

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

André R.

Monday 06 February 2006 3:48:46 am

thanks, that will do..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 22 2025 01:43:27
Script start
Timing: Jan 22 2025 01:43:27
Module start 'layout'
Timing: Jan 22 2025 01:43:27
Module start 'content'
Timing: Jan 22 2025 01:43:27
Module end 'content'
Timing: Jan 22 2025 01:43:27
Script end

Main resources:

Total runtime0.0206 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 596.4453151.2109
Module start 'layout' 0.00570.0053 747.656336.6484
Module start 'content' 0.01100.0078 784.304798.1406
Module end 'content' 0.01890.0017 882.445337.9922
Script end 0.0206  920.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003115.2467140.0002
Check MTime0.00126.0096140.0001
Mysql Total
Database connection0.00083.654310.0008
Mysqli_queries0.004923.536430.0016
Looping result0.00000.130710.0000
Template Total0.00115.410.0011
Template load0.00094.143710.0009
Template processing0.00021.203110.0002
Override
Cache load0.00062.968410.0006
General
dbfile0.00178.317480.0002
String conversion0.00000.057840.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