First, the smart paging module rocks!! ;)

This module can solve the to-long-page-issue of my content-pages. I would like to use the automatic content-break-function. But I need function, that counts the words and breaks the conten after or better before the block element, where it is inside (paragraph, list).

Is this possible?

Thank you

Comments

arpeggio’s picture

Category: feature » support
Status: Active » Fixed

Yes, that is possible even page break inside the tag, Smart Paging will adjust like mentioned at the front page (anyway I'll paste a copy here):

<div class="text-important">
  <p class="info">
  Long content paragraph... 
<!--pagebreak-->
  Continuation of long content paragraph.
  </p>
  <ul class="text-note">
    <li>List #1</li>
    <li>Long list #2...
 <!--pagebreak-->
    Continuation of long list #2</li>
    <li>List #3</li>
  </ul>
</div>

...into this:

- Page 1 -
http://www.example.com/node/1

<div class="text-important">
  <p class="info">
  Long content paragraph... 
  </p>
</div>

- Page 2 -
http://www.example.com/node/1/page/0/1

<div class="text-important">
  <p class="info">
  Continuation of long content paragraph.
  </p>
  <ul class="text-note">
    <li>List #1</li>
    <li>Long list #2...</li>
  </ul>
</div>

- Page 3 -
http://www.example.com/node/1/page/0/2

<div class="text-important">
  <ul class="text-note">
    <li>Continuation of long list #2</li>
    <li>List #3</li>
  </ul>
</div>
arpeggio’s picture

Category: support » feature
Status: Fixed » Postponed (maintainer needs more info)

Opps I'm sorry I missed the automatic content-break-function. That function puts the page break based on number of characters or words no matter it is before/inside/after the tag. What would be the practical use of having automatic content-break-function and must break after the tag is closed? Thanks.

kay.beissert’s picture

I need this function for a literature-site. If I use the automatic content-break-function I have some new pages that begins with one or two words of the last paragraph. after the paragraph there is an margin. So this doesnt looks good, the authors doesn't like it.

If I could setup the automatic content-break-function to break the page after the closing-tag of a paragraph or list (or other block-format), the pagebreaks would look something "cleaner".

There had been a patch here in this issue-cue but with this patch sometimes I got white pages as last page. Maybe the automatic content-break-function should look backward from its breaking point to the next open-tag and set the breakpoint before this tag.

Thank you

arpeggio’s picture

Status: Postponed (maintainer needs more info) » Active

I see. I'll try work on this feature on my free time. Of course, patches are always welcome. Thank you.

jpstrikesback’s picture

Would definitely love to see an option to break after a paragraph or other block level element.

kay.beissert’s picture

Issue summary: View changes

Better description of my question