Closed (fixed)
Project:
Views RSS: iTunes Elements
Version:
6.x-1.0-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2012 at 10:29 UTC
Updated:
10 May 2012 at 12:47 UTC
So we use a 3rd party podcast host and when creating our Podcasts, we do not upload a file in Drupal 6. We enter an RSS enclosure tag. This is how we normally generate the in the XML file. How do we get this to be populated into the final feed? Documentation only suggest for D6 users to pull the "file upload" or "image" from the podcast? We have neither of these, any ideas?
Comments
Comment #1
maciej.zgadzaj commentedActually, you can use any type of field with any value in it, you just need to implement
hook_views_rss_item_elements_alter(&$elements)to add your own preprocess function for enclosure element and make sure that it returns correctly formatted element array (you can checkviews_rss_itunes_preprocess_channel_image()for a basic example).Comment #2
mealto commentedThanks for the reply. This is a little beyond my technical expertise but let me do more reading and see if I can figure it out. For the record, we have been using http://drupal.org/project/encl_remote to populate our enclousre tag but this is now limiting us and it does not look like there is a 7 version coming so we will look to phase this out and move our feed output to Views RSS: iTunes Elements. Everything is exactly the way we want it but this last enclosure tag is a toughie for us. btw, great job on the module. We created our initial itunes feed by hand and mirrored things to a tee as to what Apple wanted. Glad to see someone finally made a Drupal module that does this well.
If you have any suggestions on how I can begin to use your plugin, do share. I can follow instructions well, just cannot figure things out as I am not a developer.
Comment #3
maciej.zgadzaj commentedAs an example, assuming that you have full URL to the external file stored in a simple text file, the most basic version would look something like this:
Obviously you need to provide proper values for
lengthandtypearguments.Comment #5
hongpong commentedIs there any further info available about how which hook to use for D7? Thank you!
Comment #6
maciej.zgadzaj commentedPlease do not edit or re-open already closed issues. If you have a problem or need a support, just open a new issue.
Answering your question - D7 uses exactly the same hooks as D6.