Pagination
Posted: 21 June 2010 10:34 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2010-06-21

Hi

I have a number of weblog entries I want to order on page. But I am using pagination also, with a limit of 12 entries per page.
Basically my weblog is a catalog of products with about 500 products and 12 per page, and about 23 categories of product.

I basically want to be able to better control the order the products are displayed in.

Is it possible to use the selected_items module when pagination is being used? That is - do I or can I place the limit and paginations tags into the {exp:selected_items} tag or is the use of pagination in conjunction with the selected items module not possible.

Profile
 
 
Posted: 22 June 2010 01:02 AM   [ Ignore ]   [ # 1 ]  
Administrator
RankRankRankRank
Total Posts:  179
Joined  2006-04-12

The selected items module will return a list of entries in your defined order. This list is then used in a standard {exp:weblog:entries} tag, so you should be able to use the standard pagination.


This page - http://www.brandnewbox.co.uk/articles/details/selected_items_and_expressionengine_165/ - shows how to use the module with EE 1.6.5 or above.

Profile
 
 
Posted: 22 June 2010 05:08 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  2
Joined  2010-06-21

Thanks.

I had tried to use the ‘before’ tags rather than the ‘after’ tags. i.e. I needed to use fixed_order

{exp:selecteditems name=“Test”}
{exp:weblog:entries weblog=“default_site” fixed_order=”{selecteditems_id}”}

rather than

{exp:selecteditems name=“Test”}
{exp:weblog:entries weblog=“default_site” entry_id=”{selecteditems_id}” orderby=“selecteditems”}

So now in adding pagination parameters to the weblog entries tag - all is fine.

Thank you very much for your response.

Once I am happy that I can use/fit this module into the overall system (i.e. we will be using it on the live site) for my client to easily order the catalog entries we have - I will make a donation.

Profile