Forums / Install & configuration / Considerations about the override-logic for ini-files

Considerations about the override-logic for ini-files

Author Message

Volker Lenz

Friday 06 June 2003 4:24:28 am

I wonder how the overriding of ini-files actually works. Two override-modes seem possible and I feel they both could lead to inconsistencies in the effective ini-settings (ini + ini.append)

1. REPLACE-MODE: This would mean that e.g. if you define new array values for site access, the complete site access array is overwritten. (Fine for key-less arrays, not so fine for other settings you simply do not want to change). In "pure" replace-mode, you would have to keep -ALL- settings in your ini.append.file.

2. UPDATE-MODE: In this override-behaviour, new array values for e.g. site access would be appended to the existing values (since there are no array keys to match against). So "pure" update mode is not fine for array-configuration like host maps or site access, but it does not require to keep unchanged ini-values in override-files.

I am looking forward to comments clarifying this.

Regards

Volker

Paul Borgermans

Monday 09 June 2003 2:37:07 am

>1. REPLACE-MODE: This would mean that e.g. if you define new array
>values for site access, the complete site access array is overwritten. (Fine
>for key-less arrays, not so fine for other settings you simply do not want to
>change). In "pure" replace-mode, you would have to keep -ALL- settings in
>your ini.append.file.

But "pure replace mode" would mean the use of eg site.ini, not site.ini.append

This is IMHO not the way to use the ini files. Best is to use the update mode to only specify what's really specific for your site/siteaccess.

You can use the update mode also easily for replacing entire arrays by first resetting an array, eg

Rules[] ###reset the array
Rules[]=Access;enable
Rules[]=ModuleAll;true
Rules[]=Access;disable
Rules[]=Module;sdk

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gabriel Ambuehl

Monday 09 June 2003 4:11:18 am

Did anyone actually get template overriding to work in 3.1?

I have a Link class (id 11) that I'd like to have new line tpl for my siteaccess (which is called regular). The template file is called line_link.tpl

So I create settings/siteaccess/regular/override.ini.append with the following content:

[line_link]
Source=node/view/line.tpl
MatchFile=line_link.tpl
Subdir=templates
Match[class]=11

but upon loading the folder that contains all links, I still see the normal line template loaded from design/regular/templates/node/view/link.tpl.

Caching is from all I can tell disabled:
EnableCaching=false
TranslationCache=disabled
NodeTreeCaching=disabled
ViewCaching=disabled
CachedViewMode=

What am I missing?

Visit http://triligon.org

eZ debug

Timing: Jan 31 2025 00:41:16
Script start
Timing: Jan 31 2025 00:41:16
Module start 'content'
Timing: Jan 31 2025 00:41:16
Module end 'content'
Timing: Jan 31 2025 00:41:16
Script end

Main resources:

Total runtime0.2046 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0100 588.1953370.2656
Module start 'content' 0.01000.0134 958.46091,005.6250
Module end 'content' 0.02350.1810 1,964.08593,894.5703
Script end 0.2045  5,858.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00472.3003200.0002
Check MTime0.00140.6845200.0001
Mysql Total
Database connection0.00110.557710.0011
Mysqli_queries0.107752.64041410.0008
Looping result0.00140.66531390.0000
Template Total0.180588.210.1805
Template load0.00090.438510.0009
Template processing0.179687.807710.1796
Override
Cache load0.00060.310810.0006
Sytem overhead
Fetch class attribute can translate value0.00190.941810.0019
XML
Image XML parsing0.00030.127010.0003
General
dbfile0.00723.5282200.0004
String conversion0.00000.005030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs