Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

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
Article modified:
05 May 2008

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

Pat64:

Excellent! Very usefull!

Thanks lot.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern