ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination of long articles question (Newbie)

June 21, 2007 4:36pm

Subscribe [3]
  • #1 / Jun 21, 2007 4:36pm

    stevo_s

    176 posts

    Hi,

    I’ve read the page at

    http://expressionengine.com/docs/modules/weblog/pagination_page.html

    But how do you set the limit point at which the pages will start to paginate ?

    OR do you have to create loads of custom fields called page 1, page 2 etc.,
    and then manually split them up?

    OR is there a paginate splitter tag you can put in the main article and it will split at those points?

    Don’t quite get it.

  • #2 / Jun 22, 2007 7:37am

    stevo_s

    176 posts

    anyone able to help on this?

  • #3 / Jun 22, 2007 11:55am

    stevo_s

    176 posts

    hmm no one seems to know.

    I found this plug-in
    is that the only real way to paginate?

  • #4 / Jun 22, 2007 12:15pm

    Sue Crocker

    26054 posts

    Pagination Spanning

    Take a look at this page for the docs.

  • #5 / Jun 22, 2007 12:19pm

    stevo_s

    176 posts

    it doesn’t explain though how you actually set the split in the article ?
    how are the pages actually divided up?

  • #6 / Jun 22, 2007 12:30pm

    Sue Crocker

    26054 posts

    multi_field
    {multi_field="summary|body|extended"}

    The {multi_field=} variable is the core of the ability to span a weblog entry across multiple pages. Within the variable, you specify a pipe-delimited list of the fields. These are the fields that will be used for each individual page. Here is an example of how the feature works:

      1. Let’s say you set up a weblog and it contains (among others) the fields “page1”, “page2”, “page3”, etc.
      2.

        In your “comments” Template, you set up the {multi_field} variable like so:
        {multi_field="page1|page2|page3"}
      3. When you initially visit your comment page for an entry, where you have the {multi_field} tag in your Template, you will see the content of your “page1” field, just as if you had used the regular {page1} variable.
      4. If your entry has content in the “page2” field then you will see a “next page” link.
      5. When you click that link, you’ll see your entry again, but instead of {page1} being displayed, in its place would be {page2}.
      6. This would continue with as many variables/pages as needed.

    In other words, you’d have to set up the additional fields, and break down the text yourself. It’s not done automagically.

  • #7 / Jun 22, 2007 12:36pm

    stevo_s

    176 posts

    Thanks for your reply -

    you’d have to set up the additional fields, and break down the text yourself. It’s not done automagically

    That’s the impression I got ( not explained very clearly though in my opinion)  Not a great system. Some articles could be quite long and it would make things too time consuming. I’ll give the plug-in a try. Thanks.

  • #8 / Jun 22, 2007 12:46pm

    Sue Crocker

    26054 posts

    stevo_s, you control the content length in that case. If you have a long article, it’s not that difficult to figure out where to break it. It can be as easy as putting the whole article in, viewing the single entry via a template, and then figuring out what text needs to go to somewhere else. It’s the same concept as using summary, body, and extended, but with a pagination look and feel.

    There are plugins that will display a subset of content, and take you to another page to display everything, but that’s not the same thing as putting in paginated items.

  • #9 / Jun 22, 2007 12:51pm

    stevo_s

    176 posts

    but then you do need to modify your fields settings in admin don’t you?
    I’d be afraid they’d paste in the article wrong too and get the article mucked up 😉

    I’ll give both ideas a go, but the way I used to use MT and the way that plug-in explains it seems to make sense - just throwing in a paginate break tag where you want the breaks in a given main body text field.

  • #10 / Jul 06, 2007 1:03am

    alex7

    130 posts

    Let me understand, please! I’m going to load several hundreds (!) full length books on my site and make them available for reading by my visitors.. Every book is a single text file, containing about 500-700 pages.  Obviously I should use some kind of pagination system. What the usual practice for this approach in EE? All I can find so far is ridicules advice to manually repaginate original text file, then add several hundreds new fields in weblog and put every page to single field! Well… it’s nice… But I only have two hands and a single life to working this way. Any advises, folks?

  • #11 / Jul 17, 2007 4:41pm

    alex7

    130 posts

    Let me understand, please!...

    Looks like nobody knows the answer… thank you folks anyway…

  • #12 / Jul 17, 2007 4:43pm

    Lisa Wess

    20502 posts

    There are several ways to handle this, alex.  Either the multi-field pagination as above, or a plugin to automatically paginate after X words/paragraphs. I believe there is also a Pagination plugin that lets you put a placeholder to indicate pagination, which you’d find in the plugin forum.

    We did recently have someone import several books using the CSVGrab plugin, but I am not sure how they ended up handling pagination.

  • #13 / Jul 17, 2007 4:55pm

    alex7

    130 posts

    Thank you Lisa! I’ll try to find that plugin. Hope it will be included in next version of EE as well. So… it’s just a dream I guess…

  • #14 / Jul 17, 2007 4:56pm

    Lisa Wess

    20502 posts

    Aha, I found it.  Simple Pagination =)

  • #15 / Jul 17, 2007 5:26pm

    alex7

    130 posts

    Yahoo! Thank you Lisa!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases