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 gallery images

September 19, 2007 1:17pm

Subscribe [1]
  • #1 / Sep 19, 2007 1:17pm

    Rutger

    25 posts

    Hi all,

    I thought the below code would simply generate four random gallery images, but it doesn’t seem to work? It just shows one random image. Maybe i’m missing something?

    {exp:gallery:entries  gallery="gallerij" orderby="random" limit="4" dynamic="off"}
    {thumb_url}
    {/exp:gallery:entries}

    Thanks in advanced for any help.

  • #2 / Sep 19, 2007 1:51pm

    Lisa Wess

    20502 posts

    See the docs here: there are two formats - single entry and multi entry; try the multi entry format. =) You’ll not addition of the rows tag pair, which is required.

  • #3 / Sep 19, 2007 2:05pm

    Rutger

    25 posts

    Mmz, that wasn’t to smart of me. I completely miss-read (dictionary word? 😊) that page. Thanks!

  • #4 / Sep 19, 2007 2:36pm

    Lisa Wess

    20502 posts

    No worries, glad you got it resolved!

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

ExpressionEngine News!

#eecms, #events, #releases