Strange behavior with a pagelayout override.

Author Message

Steven E. Bailey

Monday 28 August 2006 8:45:05 am

I have a pagelayout override that matches on a section id, which works as intended, in that I go to the pagelayout_alt when I navigate to that section.

However, I've noticed something weird happening:

if I navigate from a page that uses pagelayout_alt to a page that has no section id - like user/* or extension/* - it ends up using the pagelayout_alt template.

But, if I navigate from a page that has a section id not matching on the override, and I go to a page with no section id (user/login again) it uses the pagelayout template.

It's almost as if it maintains the section_id if it isn't overwritten?

Or, am I missing something?

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Kristian Hole

Monday 28 August 2006 9:47:56 am

This sounds like a bug. Can you post a bugreport about it?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Steven E. Bailey

Tuesday 29 August 2006 2:05:30 am

Done. Bug ID #8916

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Kristian Hole

Tuesday 29 August 2006 7:57:03 am

Thanks!

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

André R.

Tuesday 29 August 2006 10:27:41 am

I think ez remembers what section you are on, so that if you enter a broken url or use other modules then content, the right design will show up.
So content with no section id will probably get the same effect.

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 18:16:01
Script start
Timing: Jan 18 2025 18:16:01
Module start 'layout'
Timing: Jan 18 2025 18:16:01
Module start 'content'
Timing: Jan 18 2025 18:16:01
Module end 'content'
Timing: Jan 18 2025 18:16:01
Script end

Main resources:

Total runtime0.0206 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 588.0469152.6406
Module start 'layout' 0.00980.0047 740.687539.4766
Module start 'content' 0.01440.0042 780.164197.3672
Module end 'content' 0.01860.0019 877.531338.3047
Script end 0.0206  915.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003014.7562140.0002
Check MTime0.00167.7775140.0001
Mysql Total
Database connection0.002511.936010.0025
Mysqli_queries0.005526.838230.0018
Looping result0.00000.101910.0000
Template Total0.00167.810.0016
Template load0.00094.273110.0009
Template processing0.00073.470810.0007
Override
Cache load0.00062.956810.0006
General
dbfile0.00021.118480.0000
String conversion0.00000.044040.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