Gallery ignores itemsPerPage

Issue #69 resolved
Jörg Schreiner created an issue

Hi,
my gallery ignores the

itemsPerPage

definition for any reason.

I definded

  • plugin.tx_fsmediagallery.settings.album.pagination.itemsPerPage=50 and
  • plugin.tx_fsmediagallery.settings.list.pagination.itemsPerPage = 50

but the pages always ony show 10 pictures.

Comments (11)

  1. Jörg Schreiner reporter

    Beside the definitions above, I also set
    Max. thumbs to display per page to e.g. 50 in Album list and Album view
    Nevertheless, I still see “items per page = 12” in the “list” and “items per page = 32” in the “album” part in “Template analysis”

    It seems, as if the manual configuration, as well as the configuration in the flexform are ignored.

  2. Christian Racan

    when i fixed this 2 lines:

    \$paginationConfiguration = $this->settings['album']['pagination'] ?? [];
    \$paginationConfiguration = $this->settings['list']['pagination'] ?? [];

    i get an error:

    Class 'GeorgRinger\NumberedPagination\NumberedPagination' not found

    OK i need also this extension now it works:
    composer require georgringer/numbered-pagination

  3. Jörg Schreiner reporter

    Hm. I have to dig a little deeper into this.
    I also changed the 2 lines but neither I got the error message about the missing class, nor did I got more than 10 thumbnails.
    I flushed all caches, but no change.

    Additionall, I realized, that my “max thumbs” in flexforms are further ignored.
    The value only changes in typo3 object browser, when I change it via typoscript file.
    @Christian Racan did you change the values in flexform or by typoscript?

  4. Frans Saris repo owner

    The object browser will not show the values you set in flexforms.

    Maybe some PHP opcache that prevents the php changes from being visible?

  5. Log in to comment