Adding Page Titles to Mambo TOC

When writing a long content in Mambo, chances are you will want to break it into smaller sections. The good thing is that Mambo comes with { mospagebreak } which you can insert anywhere in the article and Mambo will automatically do the breaking and even displaying a table of contents (TOC). The bad thing is that by default the TOC is an ugly list of ‘Page 2’, ‘Page 3’, etc. Here’s how to change it to your own titles.

This is how it looks like when I break my article into 5 pages by inserting { mospagebreak }.

Without page title

But I want it to display more meaningful titles for my reader. Simple. Just add ‘title’ attribute to the code like this:

{mospagebreak title=My custom title}

Looks better with page title

If you ask me, I’ll say it looks much better. One thing though, you cannot use quotes (single or double) in your titles as they will be displayed escaped with backslash.