Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-988

STKPager calculates wrong -> newsOverview component displays wrong amount of itmes.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.5
    • 2.0.4
    • paragraphs
    • None

      The STKPages does not calculate the offset right.

      Reproduce:

      • Add in /demo-project/news-and-events/news-overview three more news pages by copy the existing.
      • Configure the news overview components on the /demo-project/news-and-events/news-overview with max results 5.

      -> fist pager should display 5 elements, the second one.
      Result is, that the first displays two, and the second one.

      I think the problem is within the offset calculation in:
      info.magnolia.module.templatingkit.util.STKPager.getOffset()
      But don't have time to dig into.

      Any Components extending the info.magnolia.module.templatingkit.paragraphs.AbstractItemListModel will have this problem:
      stkNewsOverview, stkEventsOverview

        Acceptance criteria

              ochytil Ondrej Chytil
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: