ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Custom Ordering of Weblog Entries

January 27, 2010 12:07am

Subscribe [1]
  • #1 / Jan 27, 2010 12:07am

    code72

    104 posts

    Hi there,

    I have a website set up where there are vendors and the vendors have different ‘levels’ depending on the advertising package they’ve purchased.  The client wants a list of all the vendors to display randomly by level, so that all the ‘Premium’ vendors are ordered randomly, but they’re always displayed before the ‘Basic’ vendors.

    I’ve done this by assigning the vendors different member groups and then using separate exp:weblog:entries loops.  So I have a exp:weblog:entries loop with orderby=“random” and group_id=“7” followed by another exp:weblog:entries loop for the next level down.  It all works as it should, but now we need pagination.

    Obviously pagination won’t work across multiple exp:weblog:entries loops.  Is there another way to set this list up so that it could be contained within one exp:weblog:entries loop so that I can implement pagination?

    Any help or thoughts would be appreciated.
    Thanks,
    -John

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases