Could an option for specifying what page the contribution wizard or editor redirects to, after media is uploaded or edited, say as an admin setting?
Now contribution wizard redirects to 'kaltura/entries', and the editor stays on the same page, after finishing.

Comments

Zohar.Babin’s picture

you have a hook exposed for that.
function kaltura_cw_destination() (kaltura.module)
/*
* function to choose to what URL the user will be redirected to after AddEntry in the CW
*
* This function exposes a hook_cw_destination()
*/

aufumy’s picture

Thanks, I missed that.

How about the simple_editor?

Thanks.

fp’s picture

Status: Active » Needs review
StatusFileSize
new9.05 KB

Here's a patch that improves a bit the mix creation workflow. It's loosely related to aufumy's request.

It presents the user with the node form, creates the node, updates it with the initial kaltura values, sends the user to the newly created node and finally fires the editor.

I'm pretty new to this module so this may not take into consideration all cases...

fp’s picture

StatusFileSize
new8.42 KB

I realized that the patch also included aufumy's flag patch (http://drupal.org/node/365867).

This patch has it removed.

nad2zen’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Hi,

I am not able to redirect after the Addentry is completed, i define the redirect URL as below
function kaltura_cw_destination(){
$url = url('kaltura/myvideo');
return $url;
}

but no use.

Please some help me!!

davidseth’s picture

Your function name needs to be different. Look below, just replace the "your_module_name" bit with the name of your custom module and you wil be all set!

function your_module_name_cw_destination(){
$url = url('kaltura/myvideo');
return $url;
}
EcLipsaL’s picture

StatusFileSize
new2.05 KB

I got a question,

I am a noob with drupal & I am too close to this project and I need a little help.

Where do you add the code to what file?

The your_module_name would be kaltura or ?

And after the contribution wizard is finished instead of going to http://yoururl.com/node/8 say could I make it go to
http://yoururl.com/node/8/edit ?

Like this

function kaltura_cw_destination(){
$url = url('http://yoururl.com/node/$node/edit');
return $url;
}

And if anyone knows how to place the kaltura video comment on the node.

If someone can help me with this it would be highly appreciated.

I also have made a ton of modules into features for Open Atrium including Kaltura, twitter, activity stream and many more.

xurizaemon’s picture

Is this really RTBC, nad2zen?

univate’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Needs review

Based on the comment I would say its not been reviewed.

xurizaemon’s picture

Title: How to redirect viewer after using contribution wizard or editor » Redirect after contribution wizard or editor
Version: 6.x-2.x-dev » 6.x-1.4
Category: support » feature
Status: Fixed » Needs review

This is a fixed support request - Zohar pretty much answered the question in the first comment, and davidseth has provided the complete commentary.

Eclipsal, yes I'm sure you can do something like what you propose in your hook_cw_destination implementation.

Fp, you'd be welcome to resubmit your patch for the 2.x series.

The hook probably wants better namespacing as part of #352670: Function names must be prefixed by the module name or #877444: Module namespacing.

xurizaemon’s picture

Title: Redirect after contribution wizard or editor » How to redirect viewer after using contribution wizard or editor
Version: 6.x-1.4 » 6.x-2.x-dev
Category: feature » support
Status: Needs review » Fixed

As I was saying ...

Title: Redirect after contribution wizard or editor » How to redirect viewer after using contribution wizard or editor
Version: 6.x-1.4 » 6.x-2.x-dev
Category: feature » support
Status: Needs review » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.