Admin/user Preview

Author Message

Tony Wood

Wednesday 25 June 2003 9:35:02 am

Hi,
v3.1

We are looking at site preview, we notice that if you preview in 'Admin view' it works, but if you use your customised normal site view it fails.

Has anyone else had this problem?

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Wednesday 25 June 2003 10:00:14 am

Arrhh... its a section 'pagelayout' problem.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Wednesday 25 June 2003 1:31:20 pm

Any more information about this problem?

--bård

Documentation: http://ez.no/doc

Tony Wood

Wednesday 25 June 2003 3:47:35 pm

Nope, just me being dumb... I used a page_layout_section.tpl for the main section and had the pagelayout.tpl as the catchall.. i.e. page error, this page would then wait three seconds and bounce you to the home page.
I found that if i do this, the preview function within admin does not work as it seems to use a different section from the one your in, to display the page.
To solve the problem i removed the section_layout and replace the code in pagelayout. I don't get the nice page not found message, but i get previews, which is what i needed.

I'll need to do some tests with this for sites that have many section displays.....

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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

Main resources:

Total runtime0.0133 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.7969152.6094
Module start 'layout' 0.00520.0023 740.406339.4297
Module start 'content' 0.00760.0037 779.835993.3047
Module end 'content' 0.01120.0020 873.140634.3047
Script end 0.0133  907.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.7980140.0002
Check MTime0.00118.2552140.0001
Mysql Total
Database connection0.00085.814310.0008
Mysqli_queries0.002518.687630.0008
Looping result0.00000.089710.0000
Template Total0.001612.410.0016
Template load0.00086.341610.0008
Template processing0.00086.025910.0008
Override
Cache load0.00064.250410.0006
General
dbfile0.00021.526280.0000
String conversion0.00000.044840.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.0002 secs