zoolanders / ytp-source-k2

A K2 Source for YOOtheme Pro
5 stars 0 forks source link

How to load more items in element multiple #2

Closed philmarty closed 2 years ago

philmarty commented 2 years ago

In grid element for exemple, only 13 items are loaded. https://zooffs.a51.fr/actus/actualites-sportives.html

Is it possible to display more?

miljan-aleksic commented 2 years ago

There are no enforced limits, are you sure the limit is not set in the query configuration?

philmarty commented 2 years ago

I think no, quantity=no limit https://nimb.ws/n7ScHR

miljan-aleksic commented 2 years ago

I don't recognize that query, if it's a Custom Query it should look like this

Screenshot 2022-04-21 at 17 24 45

Can you send me the direct Customizer Link where I can see this in action?

philmarty commented 2 years ago

It's on the category template page called K2 cat: https://zooffs.a51.fr/administrator/index.php?option=com_ajax&templateStyle=12&p=customizer&format=html&site=https%3A%2F%2Fzooffs.a51.fr%2Factus%2Factualites-sportives.html

miljan-aleksic commented 2 years ago

Got it, thanks. The limit is applied on the returned items, but the view applies a limit of it own. Basically we are merging the leading, primary, and secondary items that the view is returning.

I agree is not straightforward but is how YOOtheme is doing with the Articles Category view and that way we can reuse the pagination and the general category workflow.

philmarty commented 2 years ago

Well, so I can't display more than these 13 items? I don't understand, sorry.

philmarty commented 2 years ago

Here, I've done the same configuration, and there are much more items loaded: https://zooffs.a51.fr/la-federation/offres-d-emploi.html

Here's the link to the template builder: https://zooffs.a51.fr/administrator/index.php?option=com_ajax&templateStyle=12&p=customizer&format=html&site=https%3A%2F%2Fzooffs.a51.fr%2Fla-federation%2Foffres-d-emploi.html

miljan-aleksic commented 2 years ago

You can display as many items as you want, just is not a source setting, is a K2 view setting. Go there and set higher limits :)

philmarty commented 2 years ago

Ok ! You're right, sorry for that question :)