How to make this work on Views

joachim - October 26, 2009 - 14:08
Project:Image Gallery Access
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

I had an idea today for how to make this module work with the Views-based galleries.

You could create a Views argument validation plugin that subclasses the taxonomy term ID check, and in addition checks access to the taxonomy term.
There's an example of one in image module's size argument.

#1

salvis - October 28, 2009 - 00:56

Thank you for your input.

Why do you think this is needed? I've played with it a bit, and it seems to work right out of the box.

#2

vhenninot - October 28, 2009 - 09:18

Hello,

Working fine out of the box for me too !

Vincent

#3

joachim - October 28, 2009 - 09:23

Oh ok! I've not tried this module, but I saw on the project page that it didn't work with Views-based galleries yet.

#4

salvis - October 28, 2009 - 14:52

I didn't say it didn't work:

The Image module provides two kinds of galleries. The new default kind is Views2-based and we don't know how/whether it works with IGA — all feedback would be appreciated! If you wish to activate the mature hard-coded galleries, you must disable the gallery views in Views2.

I've updated the text in the meantime.

While I have your attention: is it possible to dynamically add one or more links at the bottom of a gallery page, such as an 'edit gallery' and an 'add sub-gallery' link, in the Views version? Views aren't forms, if I remember correctly (i.e. no form_alter). How could I do that?

(ref #276612-5: Allow moderators to create subgalleries)

#5

salvis - November 20, 2009 - 16:02

@joachim: Please see my question above...

#6

joachim - November 20, 2009 - 22:30

Views 1 had hook_views_post_view. I think something similar exists in Views 2, but I don't remember the name. With that you can test for the type of view and append something to its content.

#7

salvis - November 21, 2009 - 13:49

Thanks for pointing me in the right direction!

 
 

Drupal is a registered trademark of Dries Buytaert.