Hi,

On my website I'm using CCK, Imagefield, Views and taxonomy to make galleries. Each 'gallery page' is a view which displays the thumbnails belonging to the selected term.
Once a visitor clicks a thumbnail he is directed to the full image node, and here I would like there to be a 'previous / next' functionality within the selected term.
I thought 'Customs Pagers' was the solution, but I can't seem to get it to work.
Should it work with the setup I have described? If so what might I be doing wrong since it doesn't show up?

Thanks,
Mikkel

Comments

panis’s picture

it should work in the setup as you described.
How have you configured custom pagers?

Create a full page view for the image node.
Set custom pagers to use the full page view that you created

Lostmonkey’s picture

Create a full page view for the image node

I'm not sure I understand, should I create a view for each image-node? At the moment I've set it up using the 'thumbnail with link' (to full image node).

Mikkel

Lostmonkey’s picture

I am still struggling with this. I have only set up one view, which displays the images belonging to whatever term the visitor selects. However my image-nodes have several terms, and I can not figure out how to output a pager that pages through only the images within that term. I guess maybe I could create a view for each term, and use this to create the pager, but the number of terms is simply too big and continues to change, for this to be a practical solution.

Am I asking too much of this module, or can this be done?

Thanks,
Mikkel

panis’s picture

Mikkel,
have you used arguments in your views? You can create a single view - then add an argument selecting either taxonomy term id or taxonomy termname. Now for example if this view is accessible as a pageview you access that view as http://myhost.com/view/termname it will pass the "termname" you give at the end of the url to the view to be filtered against the termname argument you enabled in the view.

so you do not have to create multiple views one for each taxonomy or change the view as your terms change.

hope this helps.
pani

Lostmonkey’s picture

Hi Pani,
I think I am already doing what you are describing. I use only one view to display my 'galleries', and it is set up with an 'Taxonomy term id'-argument. But this does not work with Custom Pagers??

(If it is any help you can see it in action at www.lostmonkey.dk)

Mikkel

panis’s picture

It does use arguments if the token module is installed. Install the token module and during setting up a pager or in the config page - it should display all the available tokens - there should be a token for taxonomy.

Lostmonkey’s picture

Hi Panis, I think I am in over my head with this .... I have searched the forum for some sort of information on how to use Tokens, but there does not seem to be any. Also I can not seem to wrap my brain around how I am supposed to set up the view sorting for term, if not the way I am already doing it. Perhaps I am not explaining my problem accurately enough, but I can think of no other way :-(

Thanks for trying,
Mikkel

panis’s picture

have you looked at using thickbox? I know thickbox module can achieve something similar with the default image gallery module that is part of the image module package - not sure if it will also pick up your custom view - but you could try it out..

I will see about putting up a demo to see if I can get your situation to work with custom pagers.

Lostmonkey’s picture

I have already had a look at thickbox, but I prefer sticking to the gallery style I have now.

I am able to get the custom pager showing on my image nodes now. However the main problem is still that the pager will page through the nodes according to their primary term, and not according to the term of the previous view.

http://drupal.org/node/193082

I fear that this is perhaps an even more complicated problem?

halftone’s picture

I had similar problems using image_gallery (part of iimage module) which has no pager to provide next|prev on individual image pages. I should have used views but couldn't get my head round it:) Frankly this issue drove me crazy for over a year : how can a CMS that makes great use of multiple taxonomies not include pagers that work with them?!

Have a look at http://drupal.org/node/193056 - which outlines what I did (with a LOT of help from people who actually know what they're doing) to get a pager working with multiple taxonomy terms. I also used Nodeorder, as I need to explicitly order some images for narrative purposes.

See multi-term pager working at http://tonysleep.co.uk/folios - you can view the same pics either by genre or the type of client they were shot for. What is does is store the current term (TID) as a $_SESSION variable. That is used to keep the pager in the current term until a different one is explicitly selected. Hopefully you can adapt the code to the custom-pager module.

This is all a couple of years old now, and my site is still using 4.7 because I'm not looking forward at all to having to repeat the agony, or do the redesign (I've gone off how it looks). I have hacked image module to work with Nodeorder on another site http://threadscape.co.uk which uses 5.n and that was easy enough, but that doesn't use multiple terms so I don't yet have code for 5.1 pager stuff.