Problem with conf property resetting

Author Message

Franck Grenier

Monday 27 June 2011 2:37:13 am

Hello,
I'm trying to reset a configuration property in an extension. Here is the test :

- In menu.ini, topidentifierlist[] is set.
- ezwebin extension adds entries in topidentifierlist[]
- then, in an extension loaded after ezwebin, I reset topidentifierlist[] and add only one entry.
- when I see the configuration in backoffice, topidentifierlist[] is not reset. My new entry is added but not by the right source.
- My extension is loaded after ezwebin and also extends it, in extension.xml file.

I don't know if I'm doing something wrong. I have checked cache dir and files, cleaned and purged it. But it still not work.

When I edit the property from the backoffice, eZ Publish sees the right sources but the configuration result is not right.

Developer at Open Wide

André R.

Monday 27 June 2011 5:10:57 am

http://issues.ez.no/IssueView.php?Id=16962&activeItem=6

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

Franck Grenier

Monday 27 June 2011 6:08:22 am

Ok, got it.

I found a solution by moving menu.ini.append.php from my extension to the override. The source indicated by the configuration browser is still wrong but the reset works.

Developer at Open Wide

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 02:57:58
Script start
Timing: Jan 18 2025 02:57:58
Module start 'layout'
Timing: Jan 18 2025 02:57:58
Module start 'content'
Timing: Jan 18 2025 02:57:59
Module end 'content'
Timing: Jan 18 2025 02:57:59
Script end

Main resources:

Total runtime1.0884 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 591.7656152.6406
Module start 'layout' 0.00630.0030 744.406339.4844
Module start 'content' 0.00931.0776 783.8906534.0391
Module end 'content' 1.08690.0014 1,317.929712.1406
Script end 1.0883  1,330.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3471160.0002
Check MTime0.00150.1417160.0001
Mysql Total
Database connection0.00090.084510.0009
Mysqli_queries1.040295.5789570.0182
Looping result0.00050.0414550.0000
Template Total1.055997.020.5279
Template load0.00220.205720.0011
Template processing1.053696.810120.5268
Template load and register function0.00010.013010.0001
states
state_id_array0.00080.070010.0008
state_identifier_array0.00110.098120.0005
Override
Cache load0.00180.1643180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.049720.0003
Fetch class attribute name0.00150.140740.0004
XML
Image XML parsing0.00060.057220.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00230.2074170.0001
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs