Redirect to an other siteaccess

Author Message

Nabil Alimi

Friday 17 March 2006 3:12:37 am

Hi there,

I've created a module extension to add some treatement to my object creation process. So for a particular content class (called 'bloc' in my case) it goes that way :

- The content/edit form with redirectURI set to the path of my extension
- In my extension, after process is done i'd like to redirectTo an other siteaccess. But by using the redirectTo() method, it seems that it can only be redirected to a module within the current siteaccess.

I wanted to have something like this. "navi" here is my 2nd siteaccess.

$Module->redirectTo( "/navi/content/view/full/".$Params['parent_node'] );

Is there some way to achieve it ?

Thanks !

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Nabil Alimi

Friday 17 March 2006 4:35:18 am

Well i found something, but it's a bit tricky.

$Module->redirectTo( "../navi/content/view/full/".$Params['parent_node'] );

If someone as a "cleaner" method, i'd be glad to hear it.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.