I have one content type with two filefields, and I want to create two iTunes feeds based on each field. It doesn't look like there's a way to do thsi, but I just wanted to make sure I wasn't overlooking something.

Thanks!
Chris

Comments

chrisshattuck’s picture

Something that would be really handy would be a hook to alter which file gets pulled. What would you think about something like this (I'll roll a patch if this is headed in the right direction):

Line 161 of itunes.module:

        // File enclosure.
        $fields = variable_get('itunes_enclosure_source', array());
        + $new_fields = module_invoke_all('itunes_fields', $fields);
        + $fields = (isset($new_fields)) ? $new_fields : $fields;
        if (!empty($fields[$node->type]) && !empty($node->{$fields[$node->type]}[0]['fid'])) {
dww’s picture

Yeah, such a hook would have been another way to go about solving #802968: Integration with emaudio? ...

There are clearly lots of requests in the issue queue about more flexibility for the sources that are used for all sorts of different fields, from the enclosure files themselves to all sorts of metadata for the feed...