Problem with online editor in ImageClassID[] and css file

Author Message

quartz

Sunday 17 August 2008 5:19:49 am

I have three site in one installation.

<b>I want to use different class image id and css file.</b>
By default in extension image class id is 5

"/extension/ezdhtml/settings/site.ini.append"

[MediaClassSettings]
ImageClassID[]=5
 

"/extension/ezdhtml/settings/design.ini.append"

[StylesheetSettings]
EditorCSSFileList[]
EditorCSSFileList[]=stylesheets/ezdhtml/editor.css
EditorCSSFileList[]=stylesheets/ezdhtml/editor_classes.css
 

<b>Then i write this code line for each site, but this not worked.</b>

<b>settings/siteaccess/site1/site.ini.append.php</b>

[MediaClassSettings]
ImageClassID[]=10
 

settings/siteaccess/site1/design.ini.append

[StylesheetSettings]
EditorCSSFileList[]
EditorCSSFileList[]=stylesheets/ezdhtml/site1_style.css
 

<b>settings/siteaccess/site2/site.ini.append.php</b>

[MediaClassSettings]
ImageClassID[]=14
 

settings/siteaccess/site2/design.ini.append

[StylesheetSettings]
EditorCSSFileList[]
EditorCSSFileList[]=stylesheets/ezdhtml/site2_style.css
 

<b>settings/siteaccess/site3/site.ini.append.php</b>

[MediaClassSettings]
ImageClassID[]=25
 

settings/siteaccess/site3/design.ini.append

[StylesheetSettings]
EditorCSSFileList[]
EditorCSSFileList[]=stylesheets/ezdhtml/site3_style.css
 

i use eZ publish version 3.9.0
Online Editor 4.2.4

I am sorry for my bad English.

André R.

Sunday 17 August 2008 7:16:19 am

This is because of the loading order of ini settings:
http://ez.no/developer/forum/suggestions/ini_priority_vs_extension_settings

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

quartz

Sunday 17 August 2008 8:25:13 am

Hi. Thanks for the reply. I am trying to understand thread *.ini priority vs. extension settings

<b>today i created extension "myextsite1"</b>

"/extension/myextsite1/settings/site.ini.append"

[MediaClassSettings]
ImageClassID[]=10
 

<b>
and this not worked. When I edit site.ini "/settings/siteaccess/site1/site.ini" in admin interface. I see wrond image id 5. System take class id value from extension "ezdhtml", but it must take from extension "myextsite1" (see below). I need number 10 image id. What i must do?
</b>

	MediaClassSettings (2)    [ + ] 	
 	ImageClassID 	extension:myextsite1	[0] 5

André R.

Sunday 17 August 2008 1:48:41 pm

Make sure your extension has higher priority then ezdhtml (above ezdhtml in the ActiveExtension setting array ).

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

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 18 2025 15:17:06
Script start
Timing: Jan 18 2025 15:17:06
Module start 'layout'
Timing: Jan 18 2025 15:17:06
Module start 'content'
Timing: Jan 18 2025 15:17:07
Module end 'content'
Timing: Jan 18 2025 15:17:07
Script end

Main resources:

Total runtime1.2629 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2891152.6563
Module start 'layout' 0.00550.0031 741.945339.5078
Module start 'content' 0.00871.2526 781.4531571.0000
Module end 'content' 1.26120.0016 1,352.453112.0938
Script end 1.2628  1,364.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2512160.0002
Check MTime0.00140.1073160.0001
Mysql Total
Database connection0.00080.066310.0008
Mysqli_queries1.195194.6352600.0199
Looping result0.00070.0571580.0000
Template Total1.230097.420.6150
Template load0.00250.194420.0012
Template processing1.227697.205020.6138
Template load and register function0.00050.040910.0005
states
state_id_array0.00090.072210.0009
state_identifier_array0.00200.155920.0010
Override
Cache load0.00190.1511510.0000
Sytem overhead
Fetch class attribute can translate value0.00090.074320.0005
Fetch class attribute name0.00210.165050.0004
XML
Image XML parsing0.00070.055020.0003
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00090.0699170.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 48
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs