creating footnotes with a list of URLs
When you're making a printable version of your blog pages, it's a good idea to list the URLs for all your hyperlinks. A neat way of doing this is to create footnotes to each link that list the URL.
I'm using the StripTags plugin for this, although since I set it up, the Collect plugin has come out, which has this functionality and much more.
If you do decide to use StripTags, here's the code:
Around the entry body:
<MTStripTags a="/ ([N])" collect="a" keep_tags="1"><$MTEntryBody regex="1"$></MTStripTags>
One of the problems with the StripTags plugin is that it strips all HTML unless you use the keep_tags attribute. Here I'm telling it to collect information from the <a> anchor tags and to add a footnote like (1) after each closing tag.
Then, where you want the footnotes to show up:
<MTIfStrippedTags tag="a">
<div >Footnotes</div>
<div ><MTStrippedTags tag="a"><$MTStrippedTagN$>
<$MTStrippedTagAttr attr="href"$><br></MTStrippedTags></div>
</MTIfStrippedTags>
For each <a> tag that was collected, this outputs the appropriate URL from the href attribute.
Subscribe to this blog's feed