Howdy all, I was >this< close to posting this as a feature request, but I figured I’d ask for ideas before I did. Basically I’m trying to modularise my templates so all common elements across the templates exist in their own individual template which is embeded/included as needs be. However I just discovered that of course you can’t embed the {pagination}{/pagination} code because embedded templates are parsed first. I also tried php includes, but juggling the input/output options didn’t work, and the snippets plugin didn’t work either. I’m using a tiny bit of php so the pagination links only appear when there are 2 or more pages, so I don’t get redudant “Page 1 of 1 pages” text. The code is as follows:
{paginate}
<? $num_pages = "{total_pages}";
if ($num_pages == "1"): ?>
<!-- nothing -->
<? else : ?>
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span> {pagination_links}
</div>
<? endif ?>
{/paginate}
It would be nice to stick this in a template, but I don’t think its possible atm :| I realise this raises bigger questions than just how the {pagination} tags are parsed, but I’d appreciate any ideas! Cheers ![]()
