Adding align-right and align-center to OE, etc

Author Message

Massimiliano Bariola

Thursday 07 September 2006 6:25:46 am

Greetings,

I am trying to add some needed features to OE possibly through configuration or adding some custom tags.

The features I need are:

- aligning to right a paragraph or selected text (still allowing nesting of other builtin tags, i.e. bold, italic, eznode: ........ )
- aligning to center a paragraph or selected text (still allowing nesting of other builtin tags, i.e. bold, italic, eznode: ........ )
- possibility to enter 2+ white lines to space content (currently, repeated empty lines are stripped and reduced to just one)

has anyone tried to do anything like that and willing to share some pointers?

cheers,

Max

Damien Pobel

Friday 08 September 2006 2:34:57 am

In the content.ini you can define available CSS classes for XML tags. For example, you can write in your settings/override/content.ini.php :

[paragraph]
AvailableClasses[]
AvailableClasses[]=pCenter
AvailableClasses[]=pRight

With that, you can choose a CSS class when you select "Properties" after a right clic on a paragraph.

For empty lines, you can use

[paragraph]
AllowEmpty=true

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Robert Lavala

Monday 07 January 2008 3:26:12 pm

I was wondering if an OE solution is going to be forthcoming for simple things like centering text or is there something I can do manually?

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

Main resources:

Total runtime0.0115 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.0043 590.1641151.2266
Module start 'layout' 0.00430.0021 741.390636.6797
Module start 'content' 0.00640.0037 778.070390.3125
Module end 'content' 0.01010.0014 868.382833.9922
Script end 0.0115  902.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002320.2274140.0002
Check MTime0.00119.3287140.0001
Mysql Total
Database connection0.00065.271210.0006
Mysqli_queries0.001714.707630.0006
Looping result0.00000.095310.0000
Template Total0.00109.110.0010
Template load0.00086.897110.0008
Template processing0.00022.135410.0002
Override
Cache load0.00064.960510.0006
General
dbfile0.00021.876580.0000
String conversion0.00000.051840.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