Geeks and God Podcast

(206)984-3694geeksandgod@gmail.comfeeds.feedburner.com/geeksandgod
login | register

Asset Module Not Working

Hey guys- maybe someone here could help me with getting the asset module going?

I'm totally stumped. I've installed the asset module and installed the asset_bonus stuff into asset/asset_bonus/swfobject,audioplayer, and swfheader folders. In the module config for asset_bonus, every item is green. I've also made sure to enable inline file assets. But when I try to display the 1pixelout MP3 player, I just get the "Audio placeholder" message. After digging in w/ firebug, I see a JS error that SWFObject is not defined. So I'm guessing that there's some JS files that aren't getting included that should be. I do have

<?php
print $scripts
?>
in my page.tpl.php file. Am I missing something?

not in scripts

the asset module calls it's javascript right inline via it's theme function. The javascript should be right next to the audio placeholder.

Can you shoot me a link to a site with the problem and the browsers you are seeing it in? I'd need to take a look at what's going on to see the problem. Also, what version of the module are you using?

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

it was the gremlins

So I when I went to the page this morning, it was all working. I guess I should have been trying different browsers maybe. It might have been some kind of issue with FF3's cache.

Well thanks the offer to help. You guys seriously have an awesome ministry.

how about RSS feeds?

Here's what I'm trying to do: I've created a 'sermon' node type that will contain a description, date, title etc, and then have asset fields that contain links to all of the related media that exists for that sermon. So usually an MP3, a PDf (of the notes), iPod video MP4, and an FLV which will all be added to the node in asset fields. This way, I can create a view that displays the sermon info, with links to the various pieces of media that exist for that sermon.

But what I can't figure out is how to make the RSS feeds for this work. I need to create an RSS feed that just links to the MP3s so that I can create a podcast feed with it. Then I'd like to have another feed for the videos. By using views and the 'RSS feed selector' argument I can create an RSS feed of these sermon nodes, but it doesn't link directly to the media files, only to the nodes. Is there a way to customize the content of that RSS feed to add those links?

Or maybe I'm going about this all wrong? Is there a better way to do it?

a weakness of asset

Now that I look at the asset module it looks like it doesn't add files to rss feeds. You could do it with a small custom module and include all the itunes stuff for mp3s.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

It's not a difficulty... it's an opportunity

Dug in more... here's what I found:

The good news is that the drupal function that creates feeds (node_feed()) calls node_invoke_nodeapi() so that you can add some custom elements to the feed.

So I created an override for hook_nodeapi() to add the elements to the feed. Once I get it all dialed in and the code all cleaned up I'll post some sample code in case anyone else is ever interested.

Part of the SAP Network