Developer forum

Forum » Templates » Random article from specific page

Random article from specific page


Reply
Hi everyone,

I am going to create a mini-banner-system. The customer wants the banners to cycle randomly between the banners that is available. So here's how I had in mind to solve it. 

1. I create a page which contains all the banners.
2. Each banner will be created as an article on this page.
3. * This is where I need your help * I will create a script that randomly cycles between the article-IDs from the page on refresh. How can I do this?

Best regards,
JR

Replies

 
Reply
I've found a solution :)
 
Lanzo van Slooten
Reply

What is the solution??

 

I need the same on the homepage of a customer website.

 

best regards,

Lanzo van Slooten

 
Merethe Nielsen
Reply

Hi

 

An idea could be to use the new item types?

Something similar to this simple example?

http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Example-with-item-paragraph.aspx

 

More info about item types: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items.aspx

 

Kind regards,

Merethe

 

You must be logged in to post in the forum