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