is it possible to have a custom RSS feed structure?

mediashock - August 22, 2007 - 17:16

I would like to create a custom rss/xml output, is this possible? for example i dont want to have this
<?xml version="1.0" encoding="utf-8"?>

/menu

en

i would like to export specific fields and cck types as nodes in the xml file.
anyone has done this?

i am trying to modify the views_rss module

mediashock - August 22, 2007 - 18:26

I think i found where i can edit the RSS output.
in the views_rss.module

I have another question, how do i PULL the info i need from a CCK field .. for example i was going to use the $extra variable to add my custom fields i need

$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' =>  date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));

There are getting $item->name for example.. how do i get my filed i called "url" into there

 
 

Drupal is a registered trademark of Dries Buytaert.