Jump to main content Jump to doc navigation

Description

PageBreaker is a plugin, than allows you to show big texts splitted to pages. It is searching for special string in text (<!- splitter ->) and splitting text on it. Also included pagination and friendly urls for pages of text.

You can manually enter splitters in text or use plugin for TinyMCE for it (see below).

Splitted page must be not cacheable. Otherwise you will see the same text on changing pages.

Requirements

  • MODX Revolution 2.1 or later
  • PHP5 or later

Homepage and Demo

http://bezumkin.ru/modx/pagebreaker/

Download

It can be downloaded from within the MODX Revolution manager via Package Management, or from the MODX Extras Repository, here: https://modx.com/extras/package/pagebreaker

Usage

By default you need only to set splitters in the content of resource and disable its caching. Then plugin will do everything himself.

PageBreaker currently comes with one Plugin:

And two Chunks:

Integration with TinyMCE

When you installed pagebreaker, it is overwrite built-in TinyMCE plugin pagebreak.

You need to enable this plugin and additional buttons in in system settings. Go to System -> System Settings, switch filter of namespaces to timymce and enter to Custom Buttons Row 3

pagebreak,pagebreakmanual,pagebreakauto,pagebreakcls

Then add in Custom Plugins

pagebreak

Now we have 4 new additional buttons in TinyMCE: If you have only one button - you just need to reinstall Pagebreaker. It happends when you install TinyMCE after Pagebreaker.

What is this buttons?

On left to right:

  • Split page on current place of cursor
  • Enter number of symbols and split text automaticly.
  • Automaticly split text for every 2000 symbols.
  • Remove all splitters on the page.

After uninstalling PageBreaker you need to reinstall TinyMCE, because plugin pagebreak will be deleted and TinyMCE may be damaged.

See Also

  1. PageBreaker.PageBreaker
  2. tpl.PageBreaker.ajax
  3. tpl.PageBreaker.navigation

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more