• Resolved Dirk Claesen

    (@dirk-claesen)


    I’m a happy user of WPPA since years, but there is one thing that keeps on bothering me, namely the fact that the number of pictures per page are specified as a fixed number and not in number of lines.
    I know I raised the same question some years ago and at that time it was not possible to change this but maybe things have changed by now.
    When I set the number of pictures per page to 50, this will only display nicely when displaying either 5 or 10 pictures per line. In case 8 pictures per line are displayed, this will give 6 lines with 8 pictures and 1 line with 2 pictures which doesn’t look very nice.
    But as WPPA is made to be displayed on different types of devices, more people must face the same problem.
    As all WPPA widgets auto-size when reducing or enlarging the size of the browser window, I think it must be possible to remember the very first picture that is displayed per page. Using that picture number in combination with a fixed number of lines per page and a dynamically determined number of pictures per line, one should be able to calculate which picture to display next when moving one page forward.
    As having that functionality would improve the gallery a lot, I sincerely hope this topic can be reviewed and implemented one day.
    Kind regards,
    Dirk Claesen
    https://photona.org

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    This would lead to unpredictable results that visitors will not understand.

    Example:
    When there are 10 pages, and one is on page 9; now change the orientation of the tablet so there fit more items on a line.
    Then reload the page, the display changes, maybe even page 9 no longer exitst, at least it starts at a different photo. This is highly confusing.

    This is really a non-issue.

    Just choose a smart pagesize. If you set the pagesize to 60, you will have full rows when the number of colums is 1, 2, 3, 4, 5, 6, 10, 12, 15 or 30

    Thread Starter Dirk Claesen

    (@dirk-claesen)

    Thanks for the response!

    Setting the pagesize to something that can be divided by more numbers is a good workaround that might do the trick in most cases.
    However, after changing the number of photos per page for the TopTen and LasTen widgets, I noticed that the change is not visible on the webpage.
    I tried changing both TopTen and LasTen to 10, 12 and 48 but the number of pictures in these widgets doesn’t change on my website. On my website I always see 30 photos per page.
    TopTen is used on the “Most favourite photos”, LasTen is used on my home page.

    I already tried re-initializing the plugin, rebuilding the album index and rebuilding the photo index.

    It happens in Internet Erplorer, Chrome and Firefox and also after pressing Ctrl-F5 nothing changes.
    Is there something else I need to do?

    While I fully understand the example you describe, I think it should be possible to cover that situation as well.
    I would keep the first photo of the first line as a given fact. When moving back or forward one page, I would recalculate the photo that should appear as first photo on the first line given the current number of lines and current number of photos per line.
    The page number will also have to be recalculated at that moment (or you should be able to trigger this upon rotating the tablet). And indeed you might have an unexpected page number but that is kind of expected if you change the number of pictures per line due to whatever action you take (rotating the tablet or resizing the browser window).
    When going back to page 1, changing the number of pictures per page while browsing might result in mathematically picture -3 to be the first picture. But that could be covered by selecting picture 1 whenever the picture number is less than 1 (using max(new_picture_number,1) )

    Kind regards,
    Dirk Claesen

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The number of photos in widgets is configurable in Table I-F

    In shortcodes using virtual album specifications you can also specify the number of photos.
    Example: [wppa type="thumbs" album="#featen,0,24"][/wppa] for 24 photos.

    See also: https://wppa.nl/shortcode-reference/#album

    Thread Starter Dirk Claesen

    (@dirk-claesen)

    Thanks!

    I was indeed using virtual albums like:

    [wppa type=”album” album=”#lasten,0,1000000″]

    The number of pictures for the virtual albums is defined on I-C7. I was also first looking into I-F but noticed today it is also specified in I-C.
    That means that the workaround is now in place.

    Should you ever consider to make the number of pictures per page more dynamic, I would be very greatful.

    Thanks for the fast assistance you are always providing!

    Kind regards,
    Dirk

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Specify pictures per page in number of lines’ is closed to new replies.