Enabling Link Alter in Views

Andjety - June 24, 2008 - 17:00
Project:Views
Version:5.x-1.6
Component:taxonomy data
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I posted a subject on Taxonomy Image to solve the issue of enabling the substitution of terms enabled by this module in views:

#273839: Enabling Link Alter in Views

  • When using the "Taxonomy Image: Image" option, the table display one line per image/vocabulary.
  • It is not possible to display images from different vocabularies in different columns

The best option to solve these issues would be to enable the "Link Alter" module to enable it in these table views. For example add a "As image" to the display options of the field in the Views setup.

I have identified some ways to solve this issue, but advices on how to properly implement this with Views API would be very usefull.

Is it possible to add an "As Image" display option for taxonomy fields by using some handler overloading, or does this requires changes in views_taxonomy.inc ?

#1

merlinofchaos - June 24, 2008 - 17:46

I believe you probably want to utilize hook_views_tables_alter() which will let you modify that without having to hack views_taxonomy.inc.

#2

amariotti - September 16, 2008 - 15:54

I'm also interested in this being an option for me with the Taxonomy Image module. Hopefully this discussion can continue in the issue queue for that module.

http://drupal.org/node/273839

merlinofchaos, do you have any advice on going about implementing this fix? Thanks!

#3

sun - September 20, 2008 - 19:04
Status:active» fixed

merlinofchaos is right, hook_views_tables_alter() is the right approach to do stuff like this in Views 1.x.

#4

amariotti - September 24, 2008 - 15:26

Any takers on helping with the issue in my reply above?? **please** :)

#5

Anonymous (not verified) - October 8, 2008 - 15:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.