Forums / Developer / Use another pagelayout for content/edit

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!