HI,
I'm a new user, but I've searched and searched before posting a forum question, honestly!
I'm struggling to get hold of the codeblocks that belong to an album when viewing an image within the album. Initially I had assumed that the album's codeblocks would be inherited, but now I see this is not the case, and that each image has it's own codeblock, but from reading the description of the printCodeblock() function it appears I should be able to do something along these lines:
[code]<?php $codeblock2=$_zp_current_album->getcodeblock (2);
if ($codeblock2 <> '') { printCodeblock (2,'Randoms'); }
?> [/code]
If I'm understanding right this should be checking that the album's codeblock 2 is not empty, then executing it. The album is called 'Randoms'. I have tried things like GetAlbumTitle () instead of the explicit string, and also GetAlbumLinkURL (), but nothing seems to give me the album's codeblocks.
Any help will be much appreciated.