diff options
| author | Christian Fowler <spider@viovio.com> | 2006-09-15 02:08:34 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-09-15 02:08:34 +0000 |
| commit | cf9b37e2a6af8f31e5740dab33ec355ca63e2083 (patch) | |
| tree | ee8205fa197f5e4ee2a2544b46e481bd3c1900f4 /templates/image_order.tpl | |
| parent | a5170f7286b9d0c5e720343e2631e5cde6c30cc1 (diff) | |
| download | fisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.tar.gz fisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.tar.bz2 fisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.zip | |
fix pagination for matrix organization
Diffstat (limited to 'templates/image_order.tpl')
| -rw-r--r-- | templates/image_order.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/image_order.tpl b/templates/image_order.tpl index d28b15e..4716b56 100644 --- a/templates/image_order.tpl +++ b/templates/image_order.tpl @@ -24,8 +24,8 @@ <th scope="col">{tr}Miscellaneous{/tr}</th> </tr> - {counter start=0 print=false assign=imageCount} - {counter start=1 assign=pageCount} + {counter name=imageCount start=0 assign=imageCount} + {counter name=pageCount start=1 assign=pageCount} {foreach from=$gContent->mItems item=galItem key=itemContentId} {assign var=thisMantissa value=$galItem->getField('item_position')|floor} {if ($gContent->getPreference('gallery_pagination')==$smarty.const.FISHEYE_PAGINATION_POSITION_NUMBER && $lastMantissa != $thisMantissa) || ($gContent->mInfo.images_per_page && $imageCount % $gContent->mInfo.images_per_page == 0)} @@ -34,9 +34,10 @@ {tr}Gallery Page{/tr} {$pageCount} </th> </tr> + {counter name=pageCount print=false} {/if} <tr class="{$pageClass}"> - {counter print=false} + {counter name=imageCount print=false} <td class="{$galItem->mType.content_type_guid}"> <a href="{$galItem->getDisplayUrl()|escape}"><img class="thumb" src="{$gContent->mItems.$itemContentId->getThumbnailUrl()|replace:"&":"&"}{if $batchEdit.$contentId ne ''}?{math equation="1 + rand(1,9999)"}{/if}" alt="{$galItem->mInfo.title|escape}" /></a> </td> |
