Posted by coltrane on December 14, 2009 at 9:01pm
4 followers
| Project: | Views Cloud |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
I don't like that I have to provide a page and can't link to the existing taxonomy/term one so I'm investigating what it would take to provide an option, or just default, to have terms link to their normal page. From view.inc, method get_url() calls get_path() which can use override_path(). So, all that needs to be done is maybe a setting for choosing this method or defaulting so that if there is no page display set, then use 'taxonomy/term'? Would this feature request be accepted?
Comments
#1
Attached patch implements the default in template_preprocess_views_cloud_summary_style() by checking if views->get_url() is empty.
#2
Patch in #1 working for me using views cloud 6.x-1.1 and drupal 6.15.
Thanks
#3
This sounds like a pretty good idea to me, though we can't assume that "taxonomy/term" is a valid path. There is actually a hook that allows modules to change the taxonomy term path entirely (such as to point to a view at a different path). Usually this is accessed through http://api.lullabot.com/taxonomy_term_path, though the difficulty there is that you need to pass in a term in order to determine the path, you can't just assume that it will be the a static path plus the TID.
#4
Patch in #1 works 4 me, big THX! Using cloud 6.x-1.1 and drupal 6.14.