Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

img_rebase_headings

This plugin is useful if you want to ensure that the headings marked up with Textile inside an article body are all subheadings of the article title.

For example, your template might define the article title as an <h3> heading. If the author of the article used Textile h1. or h2. headings, these would then break the hierarchy of heading levels. Presumably you would want the first subheading in the article body to be h4. so that it is a proper subheading of the article title <h3>.

img_rebase_headings looks to see what is the top-level heading used in the article and adjusts all of the headings and subheadings found so that the top-level heading used matches the desired base level.

Example

<txp:img_rebase_headings base="4"><txp:body /></txp:img_rebase_headings>

Article Request Count:
Keywords/tags:
Initially released:
05 May 2008
Posted here:
05 May 2008

You know you want to visit the Archives.
Published with Textpattern