![]() |
|
Easy way to hide image if there is codeblock - 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: Easy way to hide image if there is codeblock (/thread-12456.html) |
Easy way to hide image if there is codeblock - mrHiggins - 2016-02-23 Hi guys i make my new homepage with zenphoto + mansory theme. I make a lot of panorama photos and publish them on gigapan.com. They offer embedding code and it works perfect in codeblock for pages and images. I will make a special section with panorama photos on pages. But i want to bring them also in the corresponding album with the other pictures. So my first idea was to publish there a small version of the panorama with a special icon that the user can see that under this thumbnail is more. He enters the image page and there is the embedded code in codeblock0. But: is there a way to:
I tried to upload the image as it is and upload with ftp a 1x1px image as placeholder in the album folder and replace the original image with that. I expected zen actualize the thumbnail (what i dont want) but zen actualizes the image itself - its there again!. How can i do that? I just want to hide the photo on the image page. Not in the album page. I want to have a kind of "only codeblock page with thumbnail". Thanks and best regards Easy way to hide image if there is codeblock - acrylian - 2016-02-23 You could check if the codeblock has any content like But if you have embed code anyway maybe an idea would be to use the textobject plugin instead? You would just put the embed code into the txt or html file and then you can have a separate thumbnail as with videos: http://www.zenphoto.org/news/using-external-sources Quote:I will make a special section with panorama photos on pages. Before starting I would recommend to read the standard tutorial: Does that help? Easy way to hide image if there is codeblock - mrHiggins - 2016-02-23 theme modifications are ok. I'm softwaredeveloper - but php and other web code is not my field In the theme there is just the call I found the getCodeBlockMethod in template-functions and i will try what comes out. As a first step i put that for the image.php above the image part. So it is on top. Thats ok for the beginning. But it would be more nice if the picture is not visible. I don't think that i need a special layout. On every page there will be one panorama, maybe a few above each other. But the rest is okay. i use the side bar, text there and so on. But inside the normal album i want the panorama too. Maybe i will publish code or extra content above or under the thumbails on the album side later for the text (at images its good at the side but for albums i prefer it in main area) but that will work. Easy way to hide image if there is codeblock - mrHiggins - 2016-02-23 thanks - it worked with the getCodeBlock method Easy way to hide image if there is codeblock - acrylian - 2016-02-23 All right, just trying to show some possibilities. Zenphoto is quite flexible. |