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.

Limit channel parameter and MSM

August 26, 2011 7:00am

Subscribe [1]
  • #1 / Aug 26, 2011 7:00am

    Dragan Simonovic

    71 posts

    How does limit parameter works with MSM?

    I have 1 main and 6 other websites (subdomains). I have latest entries box on main website (domain.com) and would like to display latest added entry from each of 6 websites.

    But seems like when I use limit=“6” in channel that limit 6 entries per website so there are 36 entries in a queue. But when I use limit=“1”, only single entry is displayed instead of 6.

    So how to display latest entry from each of 6 websites in a single entry list?

  • #2 / Aug 26, 2011 12:54pm

    Lisa Wess

    20502 posts

    Hi Vibrant Drive,

    limit= works the same way always; it limits the number of entries being pulled, in combination with the other parameters.  It is not per-site, but total entries pulled in that tag.

    If you need the latest entry from each site, it would be a separate channel entries tag per site.

    Make sense?

  • #3 / Aug 26, 2011 12:57pm

    Dragan Simonovic

    71 posts

    OK so basically, I need 6 {exp:channel:entries} tags to pull latest entry from 6 different websites? That sounds scary 😊

  • #4 / Aug 26, 2011 1:20pm

    Lisa Wess

    20502 posts

    Hi, VD -

    Yes. You’ll want to use caching and the  disable parameter.  If you’re good with queries, you could possibly use the query module to make such a thing more optimized, using something like SELECT DISTINCT or some such.  But queries are not my forté; I’m happy to move this down to Community Help if you’d like to explore that option further?

  • #5 / Aug 26, 2011 1:40pm

    Dragan Simonovic

    71 posts

    Hi Lisa,

    Yes, you can move this topic to Community Help.

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

ExpressionEngine News!

#eecms, #events, #releases