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 |
Jump to:
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
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
Hello,
Working fine out of the box for me too !
Vincent
#3
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
I didn't say it didn't work:
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
@joachim: Please see my question above...
#6
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
Thanks for pointing me in the right direction!