![]() |
|
Only show "Place" text if not empty - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Only show "Place" text if not empty (/thread-963.html) |
Only show "Place" text if not empty - snagt - 2006-12-13 Could anyone help me out how to rewrite this bit from template-functions? `function getAlbumPlace() { global $_zp_current_album; return $_zp_current_album->getPlace(); } function printAlbumPlace() { echo getAlbumPlace(); }` It's because I want to use Zenphoto to show my travel photos, AND my portfolio - both pages which need a slightly different layout. So I want the Only show "Place" text if not empty - trisweb - 2006-12-13 ` ` That should do it! Let us know if you need more help. Only show "Place" text if not empty - snagt - 2006-12-13 Works wonderfully, thanks very much! I've spent days looking for a simple image gallery script (after deciding I didn't want to use a Lightbox-like script) and in the end I tried out Catscan (http://cat-scan.net/) and Cligs (http://johnleach.co.uk/documents/cligs/index.html). But both these projects had so little documentation that I turned to Zenphoto (which I didn't want to do in the beginning because I'm kind of afraid of SQL and scripts that consist of more than one file). Well, now I'm very happy that I did Thanks again! |