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
|