ZenphotoCMS Forum
Switch for remove message empty text? - 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: Switch for remove message empty text? (/thread-7986.html)



Switch for remove message empty text? - gwmbox - 2010-12-23

I may have overlooked it but where is the switch, tick box or setting to remove the empty message text?

e.g. in template_functions we have

function printAlbumDesc($editable=false, $editclass='', $messageIfEmpty = true ) { if ( $messageIfEmpty === true ) { $messageIfEmpty = gettext('(No description...)');
How do I set $messageIfempty to false? (other than add text of course)

Basically if there is no text then don;t show anything.

Thanks

GW




Switch for remove message empty text? - acrylian - 2010-12-23

Just change your theme to use printAlbumDesc(false, '', false). Alternatively you could also use echo getAlbumDesc().




Switch for remove message empty text? - gwmbox - 2010-12-24

I knew it was easy... just one of those silly things I overlooked - cheers again for all your assistance and support.

Donation on its way now for you guys to have a beer or two

Cheers

GW