Tabs with arguments and taxonomies - screencast
(Original MPEG-4 video, lower quality flash version)
Show notes and links:
- The drupal.org tutorial we are following: Views Tutorial #3 - Create two tabs to sort taxonomy view alphabetically and by created time
- Our first Bryght Tabs screencast
Step by Step (copied from the original drupal.org views argument tutorial and revised for drupal 5):
- Override the taxonomy/term view, change name to taxonomy_term_newest
- Change the URL to taxonomy/term/$arg/newest
- Set the sort criteria to: "Node: Created Time", "Descending" if it is not already the case
- In the page "Menu" settings check "Provide Menu", "Provide Menu as Tab" and "Make Default Menu Tab" and change Menu Title to "Newest"
- Save
- Clone the taxonomy/term view you just created and edit it:
- Change the name to something like taxonomy_term_alpha
- Change the url to taxonomy/term/$arg/alpha
- Change the sort criteria to: "Node: Title", "Ascending"
- In the page "Menu" settings uncheck "Make Default Menu Tab", check "Provide Menu", "Provide Menu as Tab" and change Menu Title to "Alpha"
- Save
- 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