Calling randon image from a module

paulbearne

Joined: 2005-08-01
Posts: 87
Posted: Wed, 2007-07-04 13:10

Hi All

I have a static page as part of my site http://www.swindongallery.org.uk/gallery2/main.php?g2_view=html:Home
and I with to add a row of random images to this page

This is module so the gallery API is avaible to call

so something like {g->block type="core.showRandonBlock"} is what I thing I need

I can find lot of examples of how to do it in exenal pages but none of how to this in a module

many thanks

Paul

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2007-07-14 22:55

look for imageblock at http://codex.gallery2.org/Gallery2:Themes:Reference:Blocks

info on all the available parameters is at Site Admin / Image Block in your G2.