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.

Dynamically rotating content

June 09, 2008 9:09am

Subscribe [5]
  • #1 / Jun 09, 2008 9:09am

    latte02125

    119 posts

    I have a features section that pulls a weblog entry creating a feature story.  I would like to make the feature story dynamically rotate among a few other feature stories on the home page.  Is something like this possible?

    Thanks
    Michael

  • #2 / Jun 09, 2008 9:57am

    Ingmar

    29245 posts

    What about something like

    {exp:weblog:entries entry_id="13|42|147" limit="1" orderby="random"}

    Alternatively you might use a whole weblog, a category or a custom status to restrict the pool, as it were.

  • #3 / Jun 09, 2008 10:24am

    AJP

    311 posts

    Orderby=“random” is about the only way to get them to show up, unless you specify the order.

    As Ingmar notes, you can specify which are “featured”, using a custom field and the search parameter, custom status, or category.
    Search example: search:article_type=“featured”  (where article_type is a custom field you create)

  • #4 / Jun 15, 2008 11:12am

    latte02125

    119 posts

    Thanks for your thoughts and feedback!  What I am trying to do is not so much trying to get random items to show up ... but more like having a ‘slide show’ of featured articles like you will see on aol.com home page, see attched aol example. I’ve seen this done with a joomla plug-in…didn’t know if there was some EE plug-in or anyone doing this on EE.

  • #5 / Jun 15, 2008 1:02pm

    Mark Bowen

    12637 posts

    I think what you are looking for is something like the cycle plugin for jQuery?

    If I am right in my thinking you want to have say 6 entries (could feasibly be any number though) and by clicking on the pager buttons (1/4) be shown the next item right on the same page without any page refresh?

    The cycle plugin will allow you to do just that. A very good plugin and very easy to setup.

    Hopefully that is what you are after?

    Best wishes,

    Mark

  • #6 / Jun 16, 2008 12:07am

    latte02125

    119 posts

    AWSOME!!!! YES - that’s exactly what I was looking for.  Thank you and thank you all for your input and feedback!

    Michael

  • #7 / Jun 16, 2008 4:33am

    Mark Bowen

    12637 posts

    Hi Michael,

    No problem. Hope it all goes well for you.

    Let us know if you have any problems.

    Best wishes,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases