Forums / Setup & design / Pagelayout & frontend editing

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