Hello,
So i have a page which shows thumbnails of all the elements in the gallery. Now i do not want to show the elements that are video clips. Now i filter the elements like this:
......
<table cellpadding="10" id="gsThumbMatrix">
<tr valign="top">
{foreach from=$theme.children item=child}
{* Move to a new row *}
{if ($childrenInColumnCount == 3)}
</tr>
<tr valign="top">
{assign var="childrenInColumnCount" value=0}
{/if}
{if !($child.keywords == 'video') }
{assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"}
<td class="one-image" style="width: {$theme.columnWidthPct}%">
.....
if the child does not have the video keyword then the html columns are written. but the problem is that the pagination is all screwed up, and there are blank spaces in the table where the video child is supposed to be.
can someone tell me how to fix this? can i mess with theme.children?