Thu, 24 July 2008
Home
Articles
Books
Search
Tools
Whois
Links
Sitemap
Contact us
Privacy policy
Home arrow Articles arrow Mambo arrow Adding Page Titles to Mambo TOC

Adding Page Titles to Mambo TOC PDF Print E-mail

particle beam

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 }.

Default mambo TOC

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 }

Better TOC

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.

NOTE:
Remove the space between mospagebreak and the braces.

 

Powered by
Syndicate