Skip to Content

Tabs with arguments and taxonomies - screencast

(Original MPEG-4 video, lower quality flash version)

Show notes and links:

Step by Step (copied from the original drupal.org views argument tutorial and revised for drupal 5):

  1. Override the taxonomy/term view, change name to taxonomy_term_newest
  2. Change the URL to taxonomy/term/$arg/newest
  3. Set the sort criteria to: "Node: Created Time", "Descending" if it is not already the case
  4. In the page "Menu" settings check "Provide Menu", "Provide Menu as Tab" and "Make Default Menu Tab" and change Menu Title to "Newest"
  5. Save
  6. Clone the taxonomy/term view you just created and edit it:
  7. Change the name to something like taxonomy_term_alpha
  8. Change the url to taxonomy/term/$arg/alpha
  9. Change the sort criteria to: "Node: Title", "Ascending"
  10. In the page "Menu" settings uncheck "Make Default Menu Tab", check "Provide Menu", "Provide Menu as Tab" and change Menu Title to "Alpha"
  11. Save
  12. If your tabs don't appear, login as admin and run update.php (or if you are a developer you can also truncate the cache table using MySQL or use the devel module to flush the Drupal cache)

Comments

thanks!

Great tutorial! Thank you!

http://www.i-medic.ro/boli

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.