Announcement

Collapse
No announcement yet.

random fragment on page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    random fragment on page

    I would like the ability to have multiple fragments that are somehow grouped together. When i use the group fragment name actinic would, on each upload, randomly change the fragment from within that group or move through in order or something..!

    I wouldnt use this on every page as it would mean uploading all pages on each small change, but on the home page etc it would be useful to me.

    thanks,
    Paul.

    #2
    Thanks for the suggestion Paul

    I bet there's a way to do this with PHP. You can put a condition into a list that is something like

    ListIndex == 3

    Which essentially means 'only show the third item in this list'. I bet there's a way that rather than '3' you could have a random number generated by PHP so every upload has a different item selected from the list.

    Comment


      #3
      thats how i did it

      Comment


        #4
        Sorry to drag up an old thread, but this is exactly what I want to do and there seems little point in asking exactly the same question again...

        But can you give an example of the solution? I don't know PHP, or how I would embed it in a fragment...?

        Also, can you confirm that this would randomly select the choice at upload, and not everytime someone accessed the page?

        Thanks!
        John

        Comment

        Working...
        X