Bug in template editor: overrides will always be for user siteacccess, no matter what I select

Author Message

Gabriel Ambuehl

Wednesday 11 June 2003 11:04:01 am

This time the thing actually loads and does something. I stumbled across one rather stupid bug though: when defining overrides, it will always define them for the user siteaccess, no matter what siteaccess I selected it for (I even removed user from the possible siteaccesses so I guess this is somehow hardcoded in there). I'm quite convinced that it will work once this is fixed.

Visit http://triligon.org

Bård Farstad

Wednesday 11 June 2003 11:26:20 am

Did you push the button for selection? You need to push this before the siteaccess is set. Do not select and push create new, that will not work.

This should work just fine.

That beeing said, it should also work if you pushed the create new directly after doing a selection of siteaccess. I will fix this.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Thursday 12 June 2003 3:16:23 am

Works if I hit set (didn't occur to me to hit that one before ;-). But it would definitely help if it worked without the hitting set, I agree.

Thanks a lot, its much more useable now.

Maybe also add a note that hitting set (or another name if that fits better) will show the overrides. Maybe call the buttong "show siteacces overrides" or something along that line.

I think it would also help if the class editor were to show what overrides there are defined for a particular class but that's just convenience feature more than anything else.

Visit http://triligon.org

Bård Farstad

Thursday 12 June 2003 4:01:54 am

Just fixed so that the create new button sets the siteaccess.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Thursday 12 June 2003 4:54:42 am

There's another bug.

If override.ini.append.php exists, it will be parsed but the new file created will be override.ini.append (containing override.ini.append.php and the new class). Now the new template won't show up because only override.ini.append.php will be parsed the next time. Same goes for showing templates.

Visit http://triligon.org

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

Main resources:

Total runtime0.0276 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.6406151.2734
Module start 'layout' 0.00540.0048 739.9141220.8594
Module start 'content' 0.01010.0158 960.77341,001.8359
Module end 'content' 0.02600.0016 1,962.609433.9922
Script end 0.0276  1,996.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.5080140.0002
Check MTime0.00114.0112140.0001
Mysql Total
Database connection0.00072.466610.0007
Mysqli_queries0.002810.093630.0009
Looping result0.00000.047510.0000
Template Total0.00124.210.0012
Template load0.00093.284210.0009
Template processing0.00030.909110.0003
Override
Cache load0.00062.292210.0006
General
dbfile0.00145.218280.0002
String conversion0.00000.037140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs