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.

eZ debug

Timing: Jan 18 2025 19:33:58
Script start
Timing: Jan 18 2025 19:33:58
Module start 'layout'
Timing: Jan 18 2025 19:33:58
Module start 'content'
Timing: Jan 18 2025 19:33:58
Module end 'content'
Timing: Jan 18 2025 19:33:58
Script end

Main resources:

Total runtime0.0137 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.0046 587.9141152.6250
Module start 'layout' 0.00460.0030 740.539139.4453
Module start 'content' 0.00760.0044 779.984489.4453
Module end 'content' 0.01200.0017 869.429734.3047
Script end 0.0137  903.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.3203140.0002
Check MTime0.00107.5409140.0001
Mysql Total
Database connection0.00074.867010.0007
Mysqli_queries0.002619.191030.0009
Looping result0.00000.071410.0000
Template Total0.001410.210.0014
Template load0.00085.764110.0008
Template processing0.00064.457610.0006
Override
Cache load0.00064.332210.0006
General
dbfile0.00021.719380.0000
String conversion0.00000.045340.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