cellpadding and cellspacing

Author Message

Kjartan Lerøy

Monday 26 March 2007 11:51:31 pm

Greetings!

I need to display a table with little or no cell-padding and cell-spacing if possible, i.e. the contents of different cells needs to be placed as close to each other as possible. I need to do this in the control-panel / administrator-part of EZPublish, as a part of an article.

I`ve been trying to do this by editing the parameters of a table by hand, after disabling the editing-tool / gui-interface, but the tags seem to be stripped away, and I can`t find any other way to do this.

Any good ideas?

Thanks,
Kjartan

Łukasz Serwatka

Tuesday 27 March 2007 12:01:36 am

In settings/override/content.ini.append.php add:

[table]
CustomAttributes[]=cellpadding
CustomAttributes[]=cellspacing
CustomAttributesDefaults[cellpadding]=1
CustomAttributesDefaults[cellspacing]=1

Where CustomAttributesDefaults[cellpadding] is default value for attribute that appears in insert table pop-up in OE.

Clear all the cache.

Since now you can use cellpadding and cellspacing, you can also add "summary" like:

CustomAttributes[]=summary
CustomAttributesDefaults[summary]=Default

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.0123 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 588.1328151.2109
Module start 'layout' 0.00430.0024 739.343836.6484
Module start 'content' 0.00670.0045 775.992290.2656
Module end 'content' 0.01110.0011 866.257829.9922
Script end 0.0122  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.2626140.0002
Check MTime0.00108.1552140.0001
Mysql Total
Database connection0.00065.085110.0006
Mysqli_queries0.002016.601930.0007
Looping result0.00000.196310.0000
Template Total0.00097.110.0009
Template load0.00075.460110.0007
Template processing0.00021.645810.0002
Override
Cache load0.00043.497610.0004
General
dbfile0.00129.404680.0001
String conversion0.00000.054440.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