I’m busy using the Entry Gallery module and have it working successfully. The module provides the single variable {eg:count} holding the current image counter but what I would like to know is whether or not a single variable is provided holding the total number of records/images being returned? This is vital for me for applying CSS (see THIS-IS-THE-LAST-RECORD).
Will I need to go in and modify the modules code or is this variable provided (there is no mention of it in the documentation)?
{exp:entry_gallery:images entry_id="{entry_id}"}
{if {eg:count}==1}
<h1 class="firstImage">This is the first image</h1>
{/if}
{if THIS-IS-THE-LAST-RECORD}
<h1 class="lastImage">This is the last image</h1>
{/if}
{/exp:entry_gallery:images}