By skorch on
I'm running Drupal 4.5. I'm trying to generate RSS feeds using the url syntax that is mentioned on this site:
If I try navigating to:
http://www.gonzotravel.net/?q=taxonomy/feed/or/9,10,17
I just get a 404 Page not Found error.
Any ideas what is wrong?
-Drew
www.gonzotravel.net
Comments
If memory serves, I think you
If memory serves, I think you need taxonomy_browser module enabled to use that. It's not a standard feature of Drupal.
not needed
nope - no need for taxonomy browser. the url syntax for taxo feeds changed in 4.5. i forget the new syntax, actually.
Here is the current format for taxonomy feeds
This is an example feed from the Drupal site:
http://drupal.org/taxonomy/term/17/1/feed
So, everything up to "term" is standard. The first number is the ID of the term (in this case the "General" forum). The second number is the depth, for use in hierarchical vocabularies. Specifying "1" means it will return all items with a term that is below the General term (i.e. all the forums it contains).
Depth is only necessary for hierarchical terms, otherwise it can be left at 0.
To select multiple terms (term A "or" term B), do it like this:
http://drupal.org/taxonomy/term/2+23/0/feed
To select items that have all terms (term A "and" term B), do it like this:
http://drupal.org/taxonomy/term/2,23/0/feed
Is this documented anywhere?!? The easier way to do this is to select the taxonomy terms then scroll all the way to the bottom and look for the XML icon. I notice that the + sign gets changed to a space, and then gets escaped, but still seems to work.
Yo
That works. Thanks a bunch for the answer.
-Drew
www.gonzotravel.net
Depth in URLs
As I read this, I can't help but wonder when the depth is going to make a difference.
The '+' sign changing into a space might be a small (harmless) glitch.