I got the following:
I’m using the gallery inside a weblog entry, this way url’s reflect the entry name and inside the weblog entry is a custom field that holds the Category ID for the gallery
If I try to access the count value without embedding it into en entry but just displaying it in the gallery itself it is correct but when encapsulated inside the weblog entry it is always 1 and does not reflect the current image count.
How can this be solved?
{exp:weblog:entries limit="1" disable="trackbacks" rdf="off" track_views="one" weblog="media"}
{assign_variable:gallery_name="galleries"}
{exp:gallery:entries gallery="{gallery_name}" category="{Gallery}" offset="2" orderby="screen_name" sort="desc" columns="1" rows="65"}
{entries}
{row}
{image_url}
{if '{count}'== '6'}
{embed="galleries/uitgevers_{custom_field_one}"}
{/if}
{if '{count}'== '9'}
{embed="galleries/uitgevers_{custom_field_one}"}
{/if}
{/row}
{/entries}
{/exp:weblog:entries}
{/exp:gallery:entries}