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?

CommentFileSizeAuthor
#1 659694-views-cloud-default-link.patch676 bytescoltrane

Comments

coltrane’s picture

Status: Active » Needs review
StatusFileSize
new676 bytes

Attached patch implements the default in template_preprocess_views_cloud_summary_style() by checking if views->get_url() is empty.

jpshayes’s picture

Patch in #1 working for me using views cloud 6.x-1.1 and drupal 6.15.

Thanks

quicksketch’s picture

Status: Needs review » Needs work

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.

Drupalone’s picture

Patch in #1 works 4 me, big THX! Using cloud 6.x-1.1 and drupal 6.14.