Forums / Setup & design / Problem with online editor in ImageClassID[] and css file

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