I think there is huge improvement that could be done here.

This module does exactly what I needed, however, there are some things that could be done better:

  1. Table of contents is excellent, but page really needs to have a heading back :) This way you have to think and watch on which page are you. So I suggest that there should be a check box to leave heading on the page (So you have article heading and section subheading)
  2. That should also reflect on a page title (check box to select) with configurable delimiter filed to set it up (dash, en-dash, em-dash, comma..)
  3. There could be option to make table of contents as form with drop-down list to save space to jump directly upon selection.
  4. Last but not least, it could be made like in a default pager but to use actual next or previous heading not with "next" and "previous" word that doesn't mean anything to reader.

I am not a coder myself but I've seen this on other sites and it certainly makes them look intuitive.

Comments

mundanity’s picture

Hi there,

Thanks for your comments, I like #3 a lot, #1 and #2 I'll think about. #4 is a possibility, but I'm wary of offering too many configuration options. If I can think of a way to elegantly allow for them I don't see that being an issue. Again, thanks for the feedback, it's much appreciated!

macmladen’s picture

Thank you for having your attention :)

I would like to contribute as much as I can as I like this more than Paginig module (I've read the discussion about merging - I disagree, these are two concepts).

If you'd like, I'll post mash-up how I think user interface should look like, rendered page and optinos. That's best I could do as I am no coder myself.

Main points are these:

  • people like (and should) do least needed - hence, no inputing page names, page breaks, etc. Give them automation. Why? Because they should submit content not HTML, JS, etc.
  • When they change content, they have to mark it up again which is frustrating (do you believe that university professor would learn how to break pages and insert page names?)

My suggestions (again):

  1. Paginate each content according to their rules (should have pane like Paging module)
  2. Pagination
    1. no pagination
    2. manual - option field 'separator (<!-- pagebreak -->..)'
    3. automatic - heading, option field 'from (h3..)'
    4. automatic - words, option field 'from (200..)'
    5. automatic - characters, option field 'from (2000..)'
  3. Paging style (foreach type)
    1. No pager - use table of contents
    2. Default - theme_pager()
    3. Drop down list - theme_pagination_drop_down()
    4. Custom pager theme function - option field 'function (...)'
    5. Check box: present pager above
    6. Check box: present pager below
    7. Check box: table of contents
    8. Check box: Dynamically load pages using AJAX
    9. Check box: Change page title to add name of current page (Article - page name | Site name) option field 'separator (-)'
    10. Check box: Provide a "Show full page" link
    11. Check box: Use 1 based pagers (don't know what is this?)

There are some also important things, very important:

  1. Clean URL pager!!! with some options for rewrite or predefined styles, like http://domain/article/1 or http://domain/article/page1, http://domain/article/page/1 or regex that could enable those who are never satisfied to provide their solution.
  2. respect Footnote! paging is most needed in situation with long texts. Footnote module is excellent in providing footnotes but Pagination has problems with that: all footnotes go to end and it doesn't work.

All of this would make this perfect pager :)

Please make it perfect :))

Anonymous’s picture

Pagination on h3 removes the h3 text. Don't like that, need to keep showing the h3, should be optional. Sth like "show/hide h3 title?"

mundanity’s picture

Hey there,

Sounds like enough votes for leaving the title on the page, I'll make it an option in the next build.

@macmladen Please see #389902: Footnotes don't play nicely with Pagination module and #542794: Clean Urls for information on footnotes / clean url's respectively.

mundanity’s picture

Title: Having Heading for page » Consider leaving header on page when paginating by H3 tag
Taxoman’s picture

Version: 6.x-1.6 » 7.x-1.x-dev
phily’s picture

Hello,

Any news about leaving the header on the page (not only H3 but whichever tag set in header tag - I use H2)?

Thanks for this nice useful module.

Anonymous’s picture

Issue summary: View changes

Bump up. Although not maintained for over 2 years Pagination is still a very useful module. The requested feature to leave the header on the page is missed however (by me at least). Anyone willing to write a patch for this? If not, I might dive into it.