Keyword

Limit of items in category view.

More
3 weeks 1 day ago #174239 by luken
luken created the topic: Limit of items in category view.
Hi, after update to V 2.10. the number of items in category view does not exceed the 100.
I tried several settings using primaries and/or principals, but it always stop at 100 per page.
A pagination is displayed, but i need all items in one page.
Before the update, works fine.
Anybody have a similar problem?

Thank you

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 1 day ago #174240 by Fotis
Fotis replied the topic: Limit of items in category view.
This is actually a security feature. Sites with sizeable traffic can easily be abused but modifying URL parameters. 100 is a hardcoded limit to prevent that.

Of course I can make it configurable.

How many items do you display per page?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
3 weeks 1 day ago #174241 by luken
luken replied the topic: Limit of items in category view.
Well, I'm not sure.
Actually i made my custom alphabetic filter.
If i select the letter "G", only display maybe 10 items, but those items have the order nº : 110, 111, 112, 113, ....
But now, only are displayed the first 100 items, so letters A, B, C, D are ok.
But letters E, F,.. do not display nothing because those items are in the list over the number 100.
I can see that my code is not really efficient, but maybe you can give me some orientation to disable that 100 limit, to get my filter working until find a better way.

Thank you

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 14 hours ago #174242 by Fotis
Fotis replied the topic: Limit of items in category view.
Now I understand what you're doing.

To remove the hardcoded limit, edit the file /components/com_k2/views/itemlist/view.html.php and comment out this line in that file: github.com/getk2/k2/blob/master/components/com_k2/views/itemlist/view.html.php#L533

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #174293 by luken
luken replied the topic: Limit of items in category view.

Fotis wrote: To remove the hardcoded limit, edit the file /components/com_k2/views/itemlist/view.html.php and comment out this line in that file: github.com/getk2/k2/blob/master/components/com_k2/views/itemlist/view.html.php#L533


Thank you.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 4 days ago #174299 by Fotis
Fotis replied the topic: Limit of items in category view.
You're welcome.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
4 days 22 hours ago #174427 by Yannick Lämmel
Yannick Lämmel replied the topic: Limit of items in category view.
it would be great if you could add an option to enable or disable this feature, as we have to change this line after every future update on some sites right now.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 days 20 hours ago #174442 by Fotis
Fotis replied the topic: Limit of items in category view.
Yes, it will be configurable in the next update, out this month.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum