Setting Up Admin Preview "View Control" Functions

Author Message

Craig Hirsch

Saturday 23 April 2005 1:28:19 pm

I would like to get the eZ Admin Preview functionality working properly. This is the functionality available when you're editing a draft you own -- there's a "View Control" box to the left of the edit area that allows preview of the content in another design.

When I try to use this to look at a content item in my production site design, it shows up in that site design with the Default Template full view, not with the correct full view override for that content class as I've configured it on my user site.

Also, none of the buttons at the bottom of the page are enabled... they're there, but they don't do anything ("Preview","Delete","Add To Bookmarks","Notify Me", etc).

Essentially, I just want to be able to select the radio button for my live production design in the "View Control" box, update the view, get a correct preview for the item, and then click a "Return to Admin" button to return to the admin View that I came from.

Is this possible? What steps do I need to take? Thanks in advance.

--
chirsch{AT}gmail{d.t}com

Craig Hirsch

Saturday 23 April 2005 2:37:18 pm

Ok, by setting

AllowChangeButtons=enabled

in my admin siteaccess content.ini.append,I've enabled the user to switch back to the admin view. However, the preview is still broken (with the default node/view/full.tpl used instead of the correct override I've defined in my override.ini.append for that siteaccess).

Also, various other things aren't working in the pagelayout template for that sitedesign when piped through admin versionview... it looks like $module_result is different, for one thing, and that breaks various navigation elements specified in pagelayout.tpl

Thanks in advance for any suggestions as to how I can get this working.

--
chirsch{AT}gmail{d.t}com

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

Main resources:

Total runtime0.6046 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 594.8359152.6406
Module start 'layout' 0.00520.0040 747.476639.4766
Module start 'content' 0.00910.5945 786.9531486.4766
Module end 'content' 0.60360.0010 1,273.429712.1250
Script end 0.6046  1,285.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5347160.0002
Check MTime0.00140.2296160.0001
Mysql Total
Database connection0.00060.096110.0006
Mysqli_queries0.565193.4675520.0109
Looping result0.00040.0702500.0000
Template Total0.574495.020.2872
Template load0.00200.332320.0010
Template processing0.572494.675820.2862
Template load and register function0.00010.017510.0001
states
state_id_array0.00090.144710.0009
state_identifier_array0.00210.350520.0011
Override
Cache load0.00170.2825160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.073810.0004
Fetch class attribute name0.00080.134630.0003
XML
Image XML parsing0.00060.095110.0006
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00070.1090160.0000
String conversion0.00000.001740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs