hi. i am wondering if anyone has any code that will syndicate just events nodes.

thanks.

erik.

Comments

erikhopp’s picture

anybody have an idea as to how to do this? adding rss to the event module would be a good thing, yes?

Boris Mann _Old Blogger.com Account_’s picture

Ideally, once everything is a node (yes, that is kind of a goal), *anything* will be able to be syndicated as RSS.

Don't know what the status of events is.

--
Boris Mann

cel4145’s picture

one trick would be to create a taxonomy vocabularly exclusive to the events nodes with just one term. make the term selection mandatory so that the term is always used. or, if you are already using a taxonomy vocabulary with just the events nodes, then it'll be easy to build a taxonomy url which covers them all as long as term selection is mandatory.

moshe weitzman’s picture

untested

$sql = "SELECT * FROM node n INNER JOIN event e ON n.nid = e.nid ORDER BY n.nid DESC";
$result = db_query_range($sql, 0, 15);
node_feed($result);
Boris Mann _Old Blogger.com Account_’s picture

For now, you'll have to paste this into a separate file and link to it directly. I'll have a look at the event code and see about adding it to CVS. Would still need to add the "location" field into the feed.

You can test it here: http://drupal-cvs.bmannconsulting.com/event-feed.php

(remember to add include("includes/common.inc") at the top)

--
Boris Mann

mr.brightside’s picture

I'm trying to syndicate the events field

Within Drupal I went to Content creation > page

<?php
$sql = "SELECT * FROM node n INNER JOIN event e ON n.nid = e.nid ORDER BY n.nid DESC";
$result = db_query_range($sql, 0, 15);
print node_feed($result);
?>

When I see the newly created page, I get the following error.

==
XML Parsing Error: xml processing instruction not at start of external entity
Location: http://www.somedomain.net/drupal/node/18
Line Number 96, Column 26:

<?xml version="1.0" encoding="utf-8"?>
==

I tried include the common.inc file and it complained of double declaration.

Any ideas?

freyquency’s picture

This post was 2 years old when you got to it. Basically you would want to create a category term or even an entire taxonomy for events and syndicate that category.

boris mann’s picture

As chromatic says, you can make a vocabulary for events and get RSS feeds from that.

There is also an outstanding feature request to add this to events: http://drupal.org/node/9766 -- please add comments there.