Hi,
I have been looking into the best way of breaking up long articles in pages when using the CCK textarea field. The paging module does only work on Drupal's default body field, which I want to avoid as the CCK textarea field offers more flexibility.
What I would like is to be able to define something like a paging fieldgroup in the content type. Then I could use more than one CCK field unique for each page. A simple example would be a text field for the page title in combination with a text area for the page body.
The text field can then be used to generate a nice table of content such as:
- Article Title (h1)
- Page 1 title (h2)
- Page 2 title (h2)
At the bottom, plus optionally top, of each page the page title can be used for
Back to "page 1 title" Next "page title 2"
I can see all sorts of nice improvements and options for this, such as:
- Optionally scan h3, h4, etc and add those to the table of context and inserting anchors.
- Print/PDF version that outputs everything on one page with a nice ToC at the top
- Make the ToC collapsible to take less space on the page
Something like this could of course be achieved using a "wrapper" content type and then sub content types for each page. However that would create at least 3 separate nodes and make content creation, administration and maintenance more complex.
I did look at various modules, such as CCK Pager which seems to solve some of the needs.
Anyone tried to do something like this?

Comments
Duplicate content and Canonical URLS
We try to avoid pagination with in our content as google may treat it as duplicate content. In case you do use Pager, make sure you define Canonical URLS. This is available as a configuration in Drupal Meta module.
If you are able to title each page distinctly, why not create them as distinct articles and list them as related articles!
Shyamala
Unimity Solutions
Hi Shyamala, Many thanks for
Hi Shyamala,
Many thanks for your reply. Canonical URL's is something I haven't looked into yet, but after reading the Google blog post you pointed to I now understand how important that it.
As a coincidence :) I was watching the Drupal 6 SEO - Drupalcamp Colorado videos yesterday. That is an excellent SEO tutorial and it also discusses duplicated content and the importance of avoiding it when it comes to search engines.
--
/thomas
T: @tsvenson | S: tsvenson.com