I would like to add some details to the images and make them link to an associated page{capture assign='num'}{1|rand:17}{/capture}
{* generate a random number between 1 and 3, assign it to 'num Equates to no. of photos in left logo folder *}
{if ( 10 gt $num ) }
{else}
{/if}
I know how to use an if else statement to choose global content blocks dependent on the random number.
However, adding a global content block like the one below for each image seems pretty inefficient!
It strikes me I should be able to make a table of four columns, being Index No. Link. Label. and Image. Then, when $num = Index,
set Link. and Image from that row in the table, and place them in the code thusly:
Can someone point me to a help file that would take me through such a process?
or indicate a better method?
I'd appreciate it.
Andrew