I can't for the life of me figure this one out and thought I'd throw it out to see if anyone had some suggestions.
I am building a logo scroller for the Technology Association of Georgia's Anual report. They have sponsors and several levels of sponsors. Premiere, Platinum, Gold and Silver. I've set up two TVs on the sponsors documents A radio button determining the level (same as the above list) and a 2 image TV One for the sponsor page itself and one for the homepage scroller.
Building the scroller is easy. Little getResources call that builds this (albiet very simplified example) :
<a href="premiereSponsor.html"><img src="logo.png" /></a>
<a href="silverSponsor.html"><img src="logo2.png" /></a>
etc...
It would generate the link to take it to the right page based on the sponsor type TV and of course drop the logo in.
Here's where it gets hairy. The client has asked that:
Premiere Sponsors appear every 5th logo
Platinum Sponsors appear 3 times as often as the Gold and silver
Gold and silver appear once.
But also
No two logos are the same side by side.
Any thoughts as to how to proceed on this one? If all else fails I can make them edit the raw HTML for it and put them in manually but I really want it to use the TVs I've set up and make it automatic.
Any ideas would be appreciated!