svn 1954 album has images + subalbum

I noticed that the images are always presented at the next page, when an album contains images + subalbums

even when the template does not output the sub-album-loop the pagination is present and the images are at the next site

it is of no effect first to output the images in the template and then the albums...

it is independent from the template, I used default and stopdesign ...

I can't tell if that is the same situation as macalter describes...

Comments

  • acrylian Administrator, Developer
    Could link to a screenshot maybe? I don't understand the issue somehow, my svn installs look absolutly normal.
  • Connie Member
    I think I am coming closer to the error-description:

    1) the theme is defined to show up 9 albums / page and 20 images / page
    2) I have 9 subalbums, most are published, some are unpublished

    as you can see:

    6 subalbums published, 3 unpublished:
    http://www.webdeerns.de/ZwischenAbLage/zenalbum/6albenok.jpg

    7 subalbums published, 2 unpublished:
    http://www.webdeerns.de/ZwischenAbLage/zenalbum/7albennok.jpg

    I think,

    - the pagenavigation should start when there are more albums than defined for the theme
    so as I have 9 subalbums in total, it somehow counts the unpublished albums as well
    and to me it seems to start to count from 0 ...

    - the pagenavigation should not take the images of that album to the next page

    I tried to suppress the pagenavigation from the template, but even then the images did not show up, they were just unreachable..
    I took out this code:
    `<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »",true,true); ?>` and the images were on the next page, unreachable without navigation ;=)

    I hope it is clearer now
  • acrylian Administrator, Developer
    Did you try to remove or change this part on album.php? `$firstPageImages = normalizeColumns('2', '6');`
    This feature often can cause "trouble". Here is info about that: http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functionnormalizeColumns
  • Connie Member
    this is helping.. I did not know about that...

    so I published all albums, I have 9
    I set the directive to `$firstPageImages = normalizeColumns('9','9');` and it still breaks the page, I set the directive to `$firstPageImages = normalizeColumns('10','9');` and everything sits on the same page

    so it is ok for that now, but I still think it starts to count from 0... ;=)

    I will try to understand that directive, as I am not sure how many subalbums my people will want to place in an album ...
  • The directive should match the CSS in terms of the columns. If the CSS shows 3 albums in a row the album column parameter should be 3. If the CSS shows 6 images in a row the image column parameter should be 6.
Sign In or Register to comment.