PowerContent: add redirection parameters

Author Message

Seb Gaillard

Monday 18 May 2009 9:38:48 am

Hi,

I use powercontent for adding 2 different types of content ('testimony','tip').
When a user contribute, i would like to display a message like "We have received your testimony/tip. It will be available soon".

I have do this at the end of modules/powercontent/action.php
before:

   $Result['rerun_uri'] = $module->redirectionURI( 'content', 'edit', array( $ObjectID, $EditVersion, $EditLanguage ) );
   $module->setExitStatus( eZModule::STATUS_RERUN );

after:

   $Result['rerun_uri'] = $module->redirectionURI( 'content', 'edit', array( $ObjectID, $EditVersion, $EditLanguage ), null, array('type' => 'testimony') );
   $module->setExitStatus( eZModule::STATUS_RERUN );

It does'nt work....
when I set the debug redirection, and display some "echo" in lib/ezutils/classes/ezmodule.php, I see that the function redirectionURI is called 2 times.
the first times, it display this kind of url:
/content/edit/44310/1/fre-FR//(type)/testimony

and the second time
/content/edit/44310/1/fre-FR/

Someone has an idea for doing this ???
Thank's,

Seb

Kristof Coomans

Monday 18 May 2009 11:49:00 pm

Hi Seb

Please use the forum of the powercontent project for this: http://projects.ez.no/powercontent/forum/general. Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Seb Gaillard

Tuesday 19 May 2009 12:05:31 am

Hi Kristof,

ok, i go there now!
It's there: http://projects.ez.no/powercontent/forum/general/powercontent_how_to_add_user_parametrers

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