Hi,
I'm having a bit of trouble with using Pathauto and Taxonomy.
What I want to do is have a 'news' section for my site. I've created a 'news' vocabulary and have allowed contributors to add terms freely to articles.
I'd like to have it so that on the primary links, I can link to the 'news' vocabularly, so that it displays all the posts attached to the 'news' vocabulary. I've tried doing this, so for example, I've tried linking to 'www.mysite.com/news', but it just says 'page not found'. If however, I link to a term used within the vocabulary (for example,'www.mysite.com/news/monkeys'), then it displays all related content. I don't really want to add the vocabulary word as a term (for example, adding 'news' as a term to the 'news' vocabulary), because it would end up being repeated in the URL.
Why does Pathauto not display the vocabulary? Do I need to manually create an alias for the URL instead? Is this the best method for displaying content the way I want to?
Comments
Views
Pathauto won't do that for you (not how it works). What you should do is use Views module to generate a page at example.com/news and set it up to display nodes belonging only to the news vocabulary. All you have to do is make a new (Node type) view... once you make the view, click the "Add Display" button at the left to add a "Page" display. Set the "Path" setting on this display to news (the option is under Page settings). Add a "Taxonomy: Vocabulary" filter (it will let you choose which Vocabulary you want to use, so check the box for your "News" vocabulary). Under the "Basic settings" area, set the "Row style" option to Node instead of Fields so it will show a normal teaser listing (or feel free to leave it as Fields, and you can then manually customize the display, for instance only listing the titles and dates, or whatever you prefer).
Hope this helps.
Great stuff - thank you for
Great stuff - thank you for your help!