Hello Folks,
I’ve been trying to get a display so that I have:
Gallery Category Name
<thumb 1> <thumb 2> <thumb 3> <thumb 4>
11 Pictures | 27 Views | 2 Comments
Here is the code I’m trying to get to work:
{exp:gallery:categories gallery="{gallery_name}" sort="asc"}
{category_row}
{row_start}<div class="content-full">{/row_start}
{row}
<h2>{category}</h2>
<p> <div class="content-full"><br />
{exp:gallery:entries gallery="{gallery_name}" category="{category_id}" limit="4"}<br />
{entries}<br />
{row}<br />
{thumb_url}<br />
{/row}<br />
{/entries}<br />
{/exp:gallery:entries}<br />
</div></p>
<p> <br />
{total_files} Pictures | <br />
{total_views} Views | <br />
<a href="http://">{total_comments} Comments</a><br />
</p>
<p> {/row}</p>
<p> {row_end}</div>{/row_end}</p>
<p> {/category_row}<br />
{/exp:gallery:categories}Here is what the above code generates:
<div class="content-full">
<h2>Grand Am @ VIR October 5, 2007</h2>
<p> <div class="content-full"><br />
" width=<br />
" width=<br />
" width=<br />
" width=<br />
</div><br />
<br />
Pictures | <br />
Views | <br />
<a href="http://">1 Comments</a><br />
</p>
<p></div><div class="content-full"><br />
</p><h2>Nadia and Brad's Wedding Rehearsal</h2>
<p> <div class="content-full"><br />
" width=<br />
" width=<br />
" width=<br />
" width=<br />
</div></p>
<p> <br />
Pictures | <br />
Views | <br />
<a href="http://">1 Comments</a><br />
</p>
<p></div><div class="content-full"><br />
</p><h2>Hillsborough Snow January 20, 2008</h2>
<p> <div class="content-full"><br />
" width=<br />
" width=<br />
" width=<br />
" width=<br />
</div></p>
<p> <br />
Pictures | <br />
Views | <br />
<a href="http://">1 Comments</a><br />
</p>
<p></div>As you can see, inside {exp:gallery:entries}{/exp:gallery:entries} tags all of the thumbnail variables except the {thumb_url} are being properly replaced. You can also see that the {total_files} and {total_views} fields, associated with, I would expect, {exp:gallery:categories}{/exp:gallery:categories}, are not replaced with the proper counts.
I’ve probably missed something obvious, but what’s odd is that some variables are replaced properly while others are not.
Thanks,
- John