ZenphotoCMS Forum
getDesc() not working? - 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: getDesc() not working? (/thread-6378.html)



getDesc() not working? - Chisa - 21-02-2010

My client needs to put html (just links really) into image descriptions, so I've changed

printImageDesc(true);

to

echo htmlspecialchars_decode(getDesc());

However it isn't recognising the getDesc() function? There's something obvious that I'm missing here, but not sure what it is!




getDesc() not working? - gjr - 21-02-2010

getImageDesc( ) perhaps?




getDesc() not working? - Chisa - 21-02-2010

Holy crap that works! Thanks heaps




getDesc() not working? - acrylian - 21-02-2010

Just to note: getDesc() is a class method and needs to be used with the global object of the current image like $_zp_current_image->getDesc(). That is indeed the same as getImageDesc().