Keyword

Limit of items in category view.

More
4 years 11 months ago #174239 by luken
Limit of items in category view. was created by luken
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.

More
4 years 11 months ago #174240 by JoomlaWorks
Replied by JoomlaWorks on 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?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 11 months ago #174241 by luken
Replied by luken on 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.

More
4 years 11 months ago #174242 by JoomlaWorks
Replied by JoomlaWorks on 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

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 11 months ago #174293 by luken
Replied by luken on 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.

More
4 years 11 months ago #174299 by JoomlaWorks
Replied by JoomlaWorks on topic Limit of items in category view.
You're welcome.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 11 months ago #174427 by Yannick Lämmel
Replied by Yannick Lämmel on 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.

More
4 years 11 months ago #174442 by JoomlaWorks
Replied by JoomlaWorks on topic Limit of items in category view.
Yes, it will be configurable in the next update, out this month.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Electronic Beatz Network
  • Electronic Beatz Network's Avatar
  • Offline
  • New Member
More
4 years 9 months ago #175049 by Electronic Beatz Network
Replied by Electronic Beatz Network on topic Limit of items in category view.
"Yes, it will be configurable in the next update, out this month."

Do you have news about the update? When will it happen?

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

More
4 years 9 months ago #175050 by JoomlaWorks
Replied by JoomlaWorks on topic Limit of items in category view.
Soon (as in matter of days). Need to add a couple more things.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum