Upload video to another content type

chris33 - April 27, 2008 - 09:40
Project:Video
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:Unassigned
Status:active
Description

I have here another content type called "movie". On this type, it contains information of the movie. What I want, I want to display on the video module the "attach video" and "image" with "no fields" on it. Then after uploading it will automatically goes to the content type "movie" and required me to fill the fields. Please help...

#1

jenlampton - April 29, 2008 - 02:25
Component:User interface» Miscellaneous
Category:support request» feature request
Priority:critical» minor
Status:active» closed

You are not really reporting an issue with the video module or asking for a new feature, so this question shouldn't be posted here.

That said, there are many ways to do what you want, here's my first thoughts:

First Instinct:
- you don't really want two types of content, you should copy all the fields from your "movie" into your "video" and migrate the data.

Second Thought:
- use workflow_ng to set up actions so you can redirect users from the node/add/video page to the node/add/movie page.
- add a node reference field to your movie and...
- pass along the NID of the video you just created, capture it in the node/add/movie and store it in the node reference field.

I hope that helps, if you have more questions please contact me directly or post your question in the forums.
Jen

#2

Liliplanet - May 11, 2008 - 19:33
Title:Upload video then go to another content type» Upload video to another content type
Status:closed» active

Hi,

Yes! It's pretty close to what I'm looking for.

Running a film site with news articles, I would like members to be able that once they have added their press release (content type: article) to upload their video commercials directly to the article which I presume will also then be done by configuring the template.

I understand that the user can be redirected by workflow-ng to the video module for upload, but how will the video automatically insert to the article please?

Is it possible to have a CCK upload video field in my content type or perhaps another solution?

Look forward to any reply and thank you.
Lilian

#3

jenlampton - May 16, 2008 - 20:18

The way Ive done this before is as follows...

I used workflow_ng to redirect someone to node/add/video/

<?php
print $node->nid
?>
so the last arg is the nid of the node just created (the article).

Then I had to do a little custom coding to read in arg(3) and pre-populate my node-reference field in the node/add/video page with the nid in arg(3). I thnk I used hook_form_alter in a custom module for this... not sure on that one.

Then on the article page you just show a view of all videos that reference the node.

You're right, this solution is getting complex, and yes, there are plans in the work to make this sort of thing into a CCK field. I think it will be called media field, I don't remember for sure, but it's being written by the author of the File Field module, if you're curious.

Jen

#4

heshanmw - September 30, 2009 - 21:27
Status:active» fixed

#5

System Message - October 14, 2009 - 21:30
Status:fixed» closed

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

#6

heshanmw - November 9, 2009 - 02:14
Status:closed» active
 
 

Drupal is a registered trademark of Dries Buytaert.