Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-07 01:17:45

Luxebot
Member
From: Los Angeles
Registered: 2006-02-18
Posts: 25

Pagination for Long Articles?

Hi everyone, I am looking for a way to split long articles into pages. I have found hfw_pg and etz_pg but it looks like for both of them that you need to manually insert a tag in the article itself when you want to skip to the next page.

What I am looking for is a way to automatically paginate the articles, like if they reach 1000 words, for instance, then there’s automatically a link to go to the next page, etc (like in magazine sites). Is there a plugin available for this or is it already a function available in TXP? Much thanks for any and all help.

Offline

#2 2009-10-07 02:05:39

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination for Long Articles?

Definitely not core Txp. I don’t know of a plugin that fits your needs any more closely than the two you’ve already found.

Might be tricky to get something like this to work really well — to find appropriate page breaks, and divide pages in reasonable proportions, and do all this without incurring too great a performance penalty.


Code is topiary

Offline

#3 2009-10-07 02:27:38

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Pagination for Long Articles?

Dang, Jeff— I was going to recommend multidoc as the closest-possible-solution. Multidoc takes the opposite approach: instead of splitting up big articles, it automatically generates the navigation (and all other necessary scaffolding and filigree) to connect multiple articles into a single, multipage document.

Offline

#4 2009-10-07 03:00:06

Luxebot
Member
From: Los Angeles
Registered: 2006-02-18
Posts: 25

Re: Pagination for Long Articles?

Oh :( I was almost going to try MultiDoc but I wasn’t clear on what it did, exactly. Thanks.

Offline

#5 2009-10-07 08:29:56

Luxebot
Member
From: Los Angeles
Registered: 2006-02-18
Posts: 25

Re: Pagination for Long Articles?

Might be tricky to get something like this to work really well — to find appropriate page breaks, and divide pages in reasonable proportions, and do all this without incurring too great a performance penalty.

Yeah — I guess I was hoping it would work like the excellent rss_auto_excerpt where you could choose between characters, paragraphs, and words as a place to split it. It would be so useful for a magazine-type site or similar! I wish I knew PHP/Javascript because I would definitely code it myself if I could.

Last edited by Luxebot (2009-10-07 08:30:10)

Offline

#6 2009-10-07 10:46:02

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Pagination for Long Articles?

And there’s smd_pagicle

Choose where you split the page; either via some fixed code your authors can enter at chosen break points, or at particular elements on the page (e.g. at each <h2>)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2009-10-07 11:02:17

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination for Long Articles?

Note to self: before saying “there’s no plugin for …”, check stefdawson.com first.


Code is topiary

Offline

#8 2009-10-07 14:04:04

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Pagination for Long Articles?

jsoo wrote:

check stefdawson.com first.

Also a good move before saying “there is no possible way that Textpattern can…”

Stef can make Textpattern do Cirque du Soleil.

Offline

Board footer

Powered by FluxBB