I create 2 kinds of albums:
Countries Albums: Spain, England, Italy
Sites Albums: beaches, cities, museums
First I upload photos in Countries Albums. Photos and albums are displayed correctly.
Then I edit all the photos of beaches and in the "Acidfree gallery" menu I select "Beaches" in addition to the country. It means that one photo belongs to several albums.
Problem in Sites albums: The album grid is displayed correctly but when I clic on a thumbnail it displays the "first, previous ..........next, last" page of corresponding Country album instead of remaining in the site Albums. In other words I cannot get the display "first, previous ..........next, last" of sites albums.
Would somebody have an explanation. Is it a wrong setting or a limitation of Acidfree.
Thanks in advance for your help.
Comments
Comment #1
gilbertdelyon commentedAny answer to my problem!?
In the meantime I tested some different combinations. Here is my conclusion.
When you clic on an image in the thumbnails grid of an album:
- If this image belongs to only this album the navigation page "first, previous.......next, last" of this album is displayed correctly
- If this image has multiple parent albums the navigation page of the first album in the parents list is displayed, but not the one of the album grid.
Can we consider this as a bug?
Comment #2
gilbertdelyon commentedHere I am again!
I made some other test using image_gallery and template modification according to http://drupal.org/node/45050
with previous/next buttons.
Same result as in acidfree.
Now my conclusion is that it is not possible to use multiple parent images and have clear album navigation.
Comment #3
tehael commentedhi there,
i figured out the following.
when you click on an image which belongs only to the currently view album the paging in the image view works mostly fine, even for images contained in more then the current album.
but when you click in a image belonging to more than on album and the album is not the 'first' the image belongs to the paging is broken, meaning it switched to the 'first' album.
after a night stumbling through the code i think i found the reason.
at the beginning of function theme_acidfree_print_thumb_image(&$node, $parent=null) (line 49) is this piece of code to determine wether or not it is needed to give the thumb-link a pid in order to stay in the current album:
that would be fine, but unfortunately the keys in $node->taxonomy do not hold the vocabulary id as assumed by the code, but it holds the term ids.
(i did an print_r)
i don't know whether the taxonomy had the vocabulary id as key in former versions since i'm quite new to drupal.
so count can only return 0 or 1 but nothing greater than one (and 1 only in the coincidental case that vocabulary id is equal to the term id).
that said, a fix would be the following:
in that case, for images having more than one term (even though from completely different vocabularies) thumbs would get the parent term id as additional get parameter. that wouldn't hurt, but one could omit the if clause and append the parent term id in any case.
still i find it quite strange that $node->taxonomy is structured like this, but i suppose lots of other code count on that.
regards, tehael
p.s.: sorry for bad grammar or spelling (i'm not a native speaker ;)
Comment #4
mwheinz commenteditems can only have one parent. If you want to have images sorted in multiple ways, look at adding a taxonomy to your images.