wheeeeee i just love the holidays!
took the entire day sorting out my computer stuff into proper boxes and drawers. there’s a lot more to clean up before Hari Raya.
haven’t even had a chance to play any games today. ๐ can’t blame the spring cleaning, cuz it all started with me messing around with some MT plugins at work (it was the last day of work before the hols and no one was doing anything seriously). stumbled upon the Gallery Link plugin, which is rather basic as it is, but provides ground for improvement.
so here i am, improving it. ๐
to avoid my main page from getting messed up while i experiment with this, i only modified the individual entry template to show the pictures. i’ll probably add some ‘sample’ functionality for the main page later.
In addition to the existing tags, i added the MTGalleryAlbum container tag, which allows me to iterate all photos in a particular album (parameters: album, firstn) and the MTGalleryAlbumPhotoLink variable tag, which does the same thing as MTGalleryLink except for every photo found in the album.
The new container tag basically looks for all the thumbnails in the directory of the specified album. This would slow things down a lot if there are lots of pics in there.
In order to make different albums display with different entries, I had to create a new ‘album’ entry field via the CustomFields plugin, and to pass that value as a parameter to GalleryLink I had to use the MTTagInvoke plugin.
So i should get a nice list of thumbnails here that are linked to the actual photos on the gallery:
Leave a Reply