Monday 12 September 2005 3:12:01 am
In which template do you want to specify the URI to redirect to? I don't think content/upload supports this at the moment. But you can modify it to use some HTTP POST variables. Replace this code:
$upload = new eZContentUpload( );
With the following lines:
$constructorParams = array( );
if ( $http->hasPostVariable( 'RedirectURIAfterResult' ) )
{
$constructorParams['result_uri'] = $http->postVariable( 'RedirectURIAfterResult' );
}
if ( $http->hasPostVariable( 'RedirectURIAfterCancel' ) )
{
$constructorParams['cancel_uri'] = $http->postVariable( 'RedirectURIAfterCancel' );
}
if ( count( $constructorParams ) > 0 )
{
$upload = new eZContentUpload( $constructorParams );
}
else
{
$upload = new eZContentUpload( );
}
Now you can use the POST variables RedirectURIAfterResult and RedirectURIAfterCancel.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|