Pagelayout & frontend editing

Author Message

Vjeran Vlahovic

Thursday 06 October 2005 8:32:17 am

Hi!
I'm editing some objects on my frontend siteaccess and I want to use different pagelayout when I am in edit mode (/content/edit/* module). Any idea how this could be done through override.ini.append.php?
Thanks.

http://www.netgen.hr/eng

Ɓukasz Serwatka

Thursday 06 October 2005 11:50:28 am

Create new override file for layout.ini for your siteaccess (layout.ini.append.php). Put into INI file:

[edit]
PageLayout=edit_pagelayout.tpl

Place edit_pagelayout.tpl in design/(your_design)/templates

Put into edit_pagelayout.tpl {$module_result.content} with rest of xhtml.

Access object http://example.com/layout/set/edit/new_article.

You will see object in full view in new pagelayout. If you will edit object (submit edit form), content/edit module will use new pagelayout.

Second solution is with different siteaccess use.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 06:21:56
Script start
Timing: Jan 31 2025 06:21:56
Module start 'layout'
Timing: Jan 31 2025 06:21:56
Module start 'content'
Timing: Jan 31 2025 06:21:56
Module end 'content'
Timing: Jan 31 2025 06:21:56
Script end

Main resources:

Total runtime0.0134 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.0047 588.1328151.2109
Module start 'layout' 0.00480.0025 739.343836.6484
Module start 'content' 0.00720.0046 775.992290.2656
Module end 'content' 0.01180.0016 866.257829.9922
Script end 0.0134  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.6002140.0002
Check MTime0.00117.9870140.0001
Mysql Total
Database connection0.00064.512810.0006
Mysqli_queries0.002316.895430.0008
Looping result0.00000.090510.0000
Template Total0.00129.010.0012
Template load0.00096.531310.0009
Template processing0.00032.457010.0003
Override
Cache load0.00064.624610.0006
General
dbfile0.00107.454480.0001
String conversion0.00000.044440.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