populate the class field in the online editor

Author Message

Trond Åge Kvalø

Tuesday 05 October 2004 3:47:49 am

Hi folks!

I'm trying to create a class called "clear-right" for the images I embed using the Online Editor.

I have created the following lines in my content.ini.append.php

[object]
AvailableClasses[]=clear-right

I've even tried with

[img]
AvailableClasses[]=clear-right

and

[image]
AvailableClasses[]=clear-right

But the class field option is still just <none>.

Can anyone please help me?

best regards

trondåge

Wenyue Yu

Tuesday 05 October 2004 4:37:57 am

Hi,

[object]
AvailableClasses[]=clear-right


should work, have you cleared your cache?

Best regards,
wenyue

Trond Åge Kvalø

Tuesday 05 October 2004 5:08:00 am

Hi Wenyue.

Yup, I have cleared my cache. Both ways. Using the GUI and ./bin/shell/clearcache.sh --clear-all.

But thanks for letting me know the correct syntax. Makes it easier to trouble-shoot.
Anyways I've disabled the editor and inserted my class manually, since this only was needed for one image at the moment. And it is not crucial to the functionality.

best regards

trondåge

steve walker

Tuesday 05 October 2004 6:03:07 am

Trond,

I have had the same problem and disabled the editor to insert the class. The problem you now have though is if anyone goes in to edit your item with the editor enabled it will delete the class you've added as it doesnt recognise it...

Steve.

http://www.oneworldmarket.co.uk

Trond Åge Kvalø

Tuesday 05 October 2004 6:29:51 am

Hi Steve!

Thanks for letting me know. Have you solved this problem? I really can't see what else I should try to get the Online Editor aware of my classes.

best regards

trondåge

steve walker

Tuesday 05 October 2004 9:55:16 am

Unfortunately no, not yet...

Because it was just for the one situation I've gone for the same quick and dirty fix as yourself...

Steve.

http://www.oneworldmarket.co.uk

Trond Åge Kvalø

Wednesday 13 October 2004 2:31:45 am

Duhh.... This is quite embarrassing, but this is how we learn I guess.

The above mentioned lines must be put in the content.ini.append.php that resides in my settings/siteaccess/my_admin/ folder. Then I can use the class field in the online editor. The only question now is that my table.tpl doesn't seem to recognize my classes, as I always get the renderedtable class no matter which class I choose in the online editor. Anyone who can help me with that?

best regards

trondåge

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 30 2025 21:48:00
Script start
Timing: Jan 30 2025 21:48:00
Module start 'layout'
Timing: Jan 30 2025 21:48:00
Module start 'content'
Timing: Jan 30 2025 21:48:02
Module end 'content'
Timing: Jan 30 2025 21:48:02
Script end

Main resources:

Total runtime1.3573 sec
Peak memory usage8,192.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2656151.2266
Module start 'layout' 0.00510.0046 739.4922220.7188
Module start 'content' 0.00981.3467 960.21094,380.2422
Module end 'content' 1.35640.0008 5,340.453115.8125
Script end 1.3573  5,356.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2789160.0002
Check MTime0.00120.0917160.0001
Mysql Total
Database connection0.00070.054310.0007
Mysqli_queries1.261892.9595710.0178
Looping result0.00060.0470690.0000
Template Total1.295395.420.6476
Template load0.00180.131420.0009
Template processing1.293595.297420.6467
Template load and register function0.00150.107410.0015
states
state_id_array0.00220.165510.0022
state_identifier_array0.00160.115920.0008
Override
Cache load0.00150.1106430.0000
Sytem overhead
Fetch class attribute can translate value0.00180.136130.0006
Fetch class attribute name0.00180.132370.0003
XML
Image XML parsing0.00040.026430.0001
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00070.0507100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs