Radio Userland and Photo Thumbnail GalleriesI thought that it would be cool to have a page that showed all the pictures that I have used in my blog postings. The myPictures tool that comes with Radio Userland puts the pictures in a year/month/day directory structure so I wanted to work with that in a recursive nature. Here is what mine looks like.
I ended up doing two different macros: one for main main blog and one for categories. For the main blog macro, I decided to move my myPictures directory to www\photos because I don’t want all the different template graphics showing up in my blog. For the category macro, I used the images directory because it doesn’t seem to suffer from that problem. You can adjust as necessary.
1. Get and install one of the macros as appropriate. You will need to right click on the link and do a Save Target As into your macros directory. Then open the Radio console, and go to File->Open and install the macro. Download the main blog macro or the category macro.
2. You will need to put an index page in the directory you want the gallery to appear in. Here are my samples. First is the main sample. Second is the category sample.
#title “Photos”
<p>Click on the image thumbnail for a larger view.</p>
<%user.radio.macros.viewImageGallery(“photos”)%>
#title “Photos”
<p>Click on the image thumbnail for a larger view.</p>
<%user.radio.macros.viewImageGalleryCategory(“put the name of your categories directory here, not the full path”)%>
Let me know how it goes!