Use another pagelayout for content/edit

Author Message

Philip K.

Wednesday 11 May 2011 6:17:33 am

Hi.

In my website frontend I need to open create and edit dialogs in a lightbox (fancybox in my case). I don't want my pagelayout to show up in the lightbox so I decided to change form action from

 <form name="create_form" action={'content/action'|ezurl} ...>

to

 <form name="create_form" action={'layout/set/popup/content/action'|ezurl} ...>

Problem is, that eZ always overrides this action link and redirects me to the default pagelayout.

What can I do?

Thanks for your help.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Philip K.

Thursday 12 May 2011 5:16:03 am

Now I tried it with the new feature of the "host_uri" setup that is implemented since 4.4.

Site.ini settings look like:

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=website_user
AvailableSiteAccessList[]=website_content_edit
AvailableSiteAccessList[]=ezflow_site_admin
MatchOrder=host_uri

HostUriMatchMapItems[]=admin.website.url;;ezflow_site_admin
HostUriMatchMapItems[]=website.url;;website_user
HostUriMatchMapItems[]=website.url;content_edit;website_content_edit

Admin and user siteaccess are working fine. If I try to call a site that should point to "website_content_edit" siteaccess e.g. http://example.com/content_edit/<url_alias> I always get a kernel(40) error: module not found.

Any idea?

Thanks.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Philip K.

Friday 13 May 2011 3:20:19 am

Solved!

In my case I had to rearrange the HostUriMatchMapItems and put the "other siteaccesses" to the top:

HostUriMatchMapItems[]=website.url;content_edit;website_content_edit;end
HostUriMatchMapItems[]=website.url;;website_user
HostUriMatchMapItems[]=admin.website.url;;ezflow_site_admin

Now everthing works fine!

Linux is like a wigwam; no windows, now gates, and apache inside!

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 10:33:28
Script start
Timing: Jan 18 2025 10:33:28
Module start 'layout'
Timing: Jan 18 2025 10:33:28
Module start 'content'
Timing: Jan 18 2025 10:33:29
Module end 'content'
Timing: Jan 18 2025 10:33:29
Script end

Main resources:

Total runtime1.0933 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0313152.6406
Module start 'layout' 0.00740.0033 740.671939.4844
Module start 'content' 0.01061.0806 780.1563501.2500
Module end 'content' 1.09130.0020 1,281.406312.1406
Script end 1.0932  1,293.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3140160.0002
Check MTime0.00120.1131160.0001
Mysql Total
Database connection0.00080.070910.0008
Mysqli_queries1.030494.2471550.0187
Looping result0.00080.0695530.0000
Template Total1.063097.220.5315
Template load0.00220.200020.0011
Template processing1.060897.026720.5304
Template load and register function0.00030.024210.0003
states
state_id_array0.00070.066010.0007
state_identifier_array0.00080.071920.0004
Override
Cache load0.00150.1377280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.069110.0008
Fetch class attribute name0.00110.102940.0003
XML
Image XML parsing0.00290.262210.0029
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00330.3019160.0002
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs