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.

Random Channel Entries

September 28, 2012 3:05am

Subscribe [2]
  • #1 / Sep 28, 2012 3:05am

    dhari

    9 posts

    Hi,

    I have a Channel called team members.
    I need to show only one record from the list of entries in this channel so gave limit=1 in exp tag.
    This works fine. The problem is that i even want the EE to show any random record so gave
    Orderby=“random”. But this does not work.
    Any help on this will be appreciated, as i am new to EE.

    Thanks in advance,

    dhari

  • #2 / Sep 28, 2012 6:16am

    Rob Allen

    3114 posts

    Hi dari welcome to the forums!

    Are you caching the template? If you are it will always use the latest cached version so won’t be dynamic, in which case you could use an uncached embed template to pull in the channel entry.

  • #3 / Sep 28, 2012 7:06am

    dhari

    9 posts

    Hi Bluedreamer thanks for the reply.

    I got it working. So whenever the page is refresh the content of the channel changes.
    i have orderby=“random” limit=“1” and cache=“no”.

    Other thing i was wondering if it is possible to automatically change channel data on the website without a refresh say after 30 sec.

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

ExpressionEngine News!

#eecms, #events, #releases