Forums / Cotonti / General / Moar questions ;)

Trustmaster
#32625 2012-01-14 18:40

So you want something like "image roulette" for categories in the news. Each new page "shoots" next image from its category.

Kinda tricky. If you have as many images as pages in the cat, then using PageAvatar for each page is a better idea. But if you really want a roulette which turns another round if there are more pages than icons, then you need a plugin that would:

  • store comma separated URLs to images in configs for each category (like page module stores configs for each category with BEGIN_COT_EXT_CONFIG_STRUCTURE here);
  • hook into news (or pagetags), and for each page fetch an image from config and increase the roulette counter for its category;
  • whenever counter passes the number of images in its category, it starts again with 0.
May the Source be with you!