ZenphotoCMS Forum
Code in Codeblock to prevent printing getImageLinkURL - 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: Code in Codeblock to prevent printing getImageLinkURL (/thread-11284.html)



Code in Codeblock to prevent printing getImageLinkURL - vienna - 2013-08-20

My Zenphoto Theme (zpSkeleton) is using the following code in album.php to print the CustomSizedImage.
The CostumSizedImage is linking to getImageLinkURL of the Image.

`
">

`
Would it be possible to make use of a Codeblock call to prevent linking to the getImageLinkURL for certain subalbums?

To write a code in Codeblock (in certain Subalbums) and have album.php not printing the Link to getImageLinkURL?

Thank You.




Code in Codeblock to prevent printing getImageLinkURL - acrylian - 2013-08-20

No, unless you put full code into a code block and call it instead of the original code. Then you will have to do it for every item.

Code in codeblocks is just executed. You cannot affect other parts of code using theme (PHP code is done already when displayed).