>>>>> "Dave" == Dave Howorth <[EMAIL PROTECTED]> writes:

Dave> I'm creating some pages that are basically just very long tables (tens
Dave> of thousands of rows). It would make sense to split these pages into
Dave> smaller, subset tables on separate pages, together with an index page
Dave> and cross-links.

Dave> It seems pretty straightforward to code this, but before I reinvent
Dave> another wheel, does anybody know of a better way to provide this
Dave> functionality than to just sit down and code it?

In addition to the Template::Plugin::Page thread, let me also
say that I rolled my own using Template::Plugin::Table for my
picture handler (http://www.stonehenge.com/merlyn/Pictures/ ... ).
If you have "n" things taken "m" at a time, you can break it
in to chunks with:

[% USE chunks = Table([1..n], rows = m); ... %]

Then it's just a matter of figuring out what row you want to show,
and from there you get a list that responds nicely to first/last/size
etc.

That Table plugin is amazingly useful.  Just repeating myself
from last week, but it's still amazingly useful.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to