1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.

List view pagination and grouping with pdf output

Discussion in 'Standard Support' started by bobede, Sep 12, 2017.

  1. bobede

    bobede Member

    Level: Standard
    I have a list with many elements. I needed to create multiple list views showing different elements in each list view much like creating different reports based on the collected information. The information displayed in these lists often needs to printed out so I added in the dompdf plugin. I love that plugin and it works quite well but it does have one shortcoming in that it only seems to render whatever is displayed on the screen in your list results. So if your results are paginated to show 10 results per page then your pdf output might be more than one page long but will only have 10 records displayed within the pdf document. You could output multiple pdf documents but when you print those off it doesn't really look so great. So my issue was removing the pagination. Simple right - just set the results per page to zero and that should fix it. The problem was that my list was setup to be grouped by a given element and no matter what I tried, I could not remove the pagination. Finally I tried removing the Group By option and I was able to display all of the records in a single page. On a whim, I tried to use the Group By option on the front-end page and it did apply the proper grouping and displayed all of the records at once and the pdf output looks good.

    So I'm not sure if I'm missing something or not, but I don't know why adding the "group by" option under the lists settings disabled the pagination changes, while adding it on the front end does not. Ideally, I shouldn't have to instruct the end user to select the Group option before exporting the PDF.

    Anyone ever encounter this?
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Professional
    I'll take a look, see if I can replicate this.

    -- hugh

Share This Page