I'd like one of my views rss feed to use the node Update date instead of the creation date. How would I do this?

I've searched around and it appears this is how it used to be but at some point it was changed.

thanks

Comments

karnac’s picture

bump

karnac’s picture

bump

karnac’s picture

anyone? please?

ducdebreme’s picture

You can hook into hook_nodeapi with $op = 'rss item'...

/**
 * hook_nodeapi
 */
function foo_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL){
  switch ($op) {
    case 'rss item':
      /*
       * Workaround: RSS-Feeds sollen last-Modified als PubDate verwenden
       * Normal würden sie das Create-Date verwenden
       */
      $node->created = $node->changed;
      break;
  }
}

Le Duc de Brême - http://www.early-dance.de