Blog Sections Open
Building Resource Links Correctly in EvoGallery Templates
EvoGallery output often starts with image markup, but many gallery layouts also need each item to link back to the owning resource page. The original question here was really about getting that resource-level link right.
EvoGallery output often starts with image markup, but many gallery layouts also need each item to link back to the owning resource page. The original question here was really about getting that resource-level link right.
Typical Template
<div class="photo">
<a href="[~[+id+]~]" title="[+title+]">
<img src="[+thumbs_dir+][+filename+]" alt="[+title+]" />
</a>
<a href="[~[+id+]~]">[+pagetitle+]</a>
</div>
The important point is that gallery templates can and should use both the media fields and the owning document context. That keeps image grids useful as navigation, not only as decoration.
Rendering Two JotX Blocks Without Output Conflicts
How to avoid collisions when a page needs more than one JotX block with different placeholders or output expectations.
Replacing directResize with a Simpler Image Preview Flow
How to avoid heavy directResize usage by switching to a simpler preview workflow for editor-managed images.