Forums / Setup & design / xml block text formating

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

eZ debug

Timing: Jan 22 2025 02:03:58
Script start
Timing: Jan 22 2025 02:03:58
Module start 'content'
Timing: Jan 22 2025 02:04:00
Module end 'content'
Timing: Jan 22 2025 02:04:01
Script end

Main resources:

Total runtime2.6526 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 590.0859180.8359
Module start 'content' 0.00832.3161 770.9219608.0391
Module end 'content' 2.32440.3282 1,378.9609341.3750
Script end 2.6526  1,720.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00520.1963210.0002
Check MTime0.00160.0616210.0001
Mysql Total
Database connection0.00080.031110.0008
Mysqli_queries2.526495.24142030.0124
Looping result0.00420.15792010.0000
Template Total2.607698.321.3038
Template load0.00270.103720.0014
Template processing2.604998.199321.3024
Template load and register function0.00020.008210.0002
states
state_id_array0.00130.047610.0013
state_identifier_array0.00360.137320.0018
Override
Cache load0.00240.0917300.0001
Sytem overhead
Fetch class attribute can translate value0.00220.082930.0007
Fetch class attribute name0.00170.064780.0002
XML
Image XML parsing0.00150.055330.0005
class_abstraction
Instantiating content class attribute0.00000.0015120.0000
General
dbfile0.00520.1957330.0002
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs