PageBreaker extension for MODX — pagination texts

Present to you the new ready-made extension for MODX Revolution — PageBreaker.

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

The principle is not complicated: plug-in PageBreaker looking at the downloadable content page on finding there special tags <!-- pagebreak --> and if such is discovered — it breaks the page into chunks, to generate links to the following.br> The second plug helps PageRedirector responds first by forwarding the requests from the pages of the text in the document that contains them.

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

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

After this, you will have 4 buttons in the third row of the editor. Why?
• Standard — sets the location cursor.
• Manual — say how many characters to put a text break and go!
• Auto — the same as in the previous paragraph, but the number of characters is set on 2500
• Clear — to remove all empty paragraphs and page breaks.

Here, in principle, and all.

It is still possible to ship the pieces of text is not a navigation link, and using ajax. It's a little confusing (need to make a container for text and enter it in one chunk) — why disabled by default. Anyone interested — see the FAQ.

updated 20.01.2014
The component has been completely rewritten, fixed all the shortcomings of the old version. Details.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

When the basin is small, or it's time to choose VPS server

Performance comparison of hierarchical models, Django and PostgreSQL

From Tomsk to Silicon Valley and Back