Back to Home

PageBreaker extension for MODX - pagination

I present to you a new ready-made extension for MODX Revolution - PageBreaker. It consists of two plugins for MODX + a highly modified bagebreak plugin for TinyMCE. The principle of action is not ...

PageBreaker extension for MODX - pagination

    I present to you a new ready-made extension for MODX Revolution - PageBreaker.

    It consists of two plugins for MODX + a highly modified bagebreak plugin for TinyMCE.

    The principle of operation is not complicated: the PageBreaker plugin looks at the content of the loaded page for a special label <! - pagebreak -> and if it is found, it breaks the page into pieces, generating links to the following.
    The second PageRedirector plugin responds helps the first, redirecting requests from pages of text to the document containing them.

    Basically, these two plugins are enough. If you do not use editors and format manually, you just need to add <! - pagebreak -> to the text and everything will be ok.

    However, if without TinyMCE you cannot imagine working with the site, you need to make some settings:
    Go to System -> System Settings -> select the tinymce section and write in:
    • Custom Buttons Row 3 buttons pagebreak, pagebreakmanual, pagebreakauto, pagebreakcls
    • Custom Plugins add to the end of the pagebreak plugin.

    After that, you will have 4 buttons in the third row of the editor. What for?
    • Standart - puts in place of the cursor.
    • Manual - say how many characters to put text break and go!
    • Auto - same as in the previous paragraph, but the number of characters is set to 2500
    • Clear - remove all empty paragraphs and page breaks.

    That's basically it.

    There is still the opportunity to load pieces of text not by clicking on links, but through ajax. This is a bit confused (you need to make a container for the text and register it in one chunk) - therefore it is disabled by default. Who cares - see the FAQ.

    Updated 01.20.2014
    The component has been completely rewritten, all the shortcomings of the old version are fixed. Details .

    Read Next