How to retrieve all items in category not only the paginated

More
10 years 8 months ago #45507 by Fuzzy
Hello all,

I have a custom category view with google map and hotel items ( www.wydawnictwofaraway.pl/noclegi ).
Pagination in this category is set to #5 items. Let's say I have a 6 items in this category. What I want to achieve is, I want to render all 6 items on the map, regardless pagination, but when I iterate through
Code:
foreach ($this->items as $i => $item):
I get access only to #5 items (which is understandable).

How to get the data of all items returned to category view regardles to pagination?

Thanks

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

More
10 years 8 months ago #45508 by ggppdk
Hello

$this->items contains items of current page

you could set paging to a very high number,

but ALL is problematic you will run out of memory, not mention that it will be slow,

how many items will your category have maximum ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 8 months ago #45512 by Fuzzy
I expect the category to have a couple hundred items.

I want to keep the pagination on the category view, but I would like to be able to render on the Google map all the items (in this case hotels) returned to the category, not only the limited number defined by pagination.

Is there any way to access the query reults or the query clause itself, similar to:
Code:
$limit_selector = flexicontent_html::limit_selector( $this->params ); $orderby_selector = flexicontent_html::ordery_selector( $this->params );
so I could query the database without limit clause to get all the items?

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

More
10 years 8 months ago #45514 by ggppdk
Hello

currently only by setting all items to be retrieved by 1st page, which is slow because besides retrieving the value, the HTML of fields of 200 items will be created


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.355 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline