0

I know you can easily load a random entry from a channel, but I wanted to know if the functionality exists in EE to randomly embed and load a template from a group?

Thanks in advance for any guidance on this.

2
  • can you explain why you want to do this??
    – Ahmad Saad
    Mar 17, 2014 at 18:31
  • I want part of a homepage to randomly rotate promos on load. I know other ways to accomplish this, but it made me think of the question.
    – jsuissa
    Mar 17, 2014 at 18:43

1 Answer 1

1

a quick thought come to my mind is to create templates with the same name and change the prefix number for e.g: test_1,test_2,test_3......,test_100

then use this plugin to generate the random number:

http://devot-ee.com/add-ons/random-between

{embed='test_{exp:ga_randombetween start="0" stop="100"}'}

Regard's.

1
  • Good suggestion -- I'm assuming this also means it's can't be done native in EE.
    – jsuissa
    Mar 17, 2014 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.