Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Article footnotes/citations and hyperlinks
I’ve started used hyperlinks more, and I’m curious how I could achieve this:
- inline anchor + hyperlink to an article footnote
- footnote hyperlinking back to the inline anchor
A bit like this:
http://www.loopinsight.com/2012/08/27/randy-rhoads-and-zakk-wylde/
Note the ‘↩’ character after the footnote. Wikipedia articles do something similar with their citations, but they prepend a ‘^’:
http://en.wikipedia.org/wiki/Textpattern#cite_note-0
I create footnotes and hyperlinks with Textile, like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.[1]
fn1. Mauris vehicula pulvinar metus, ac euismod urna pulvinar id.
In the article I’ve written most recently, the [1] links to #fn872328866504a50274f631
on the article. Short of publishing and then manually adding a ‘↩’ hyperlink after it, along with an a name
anchor near the [1], I can’t think of another way to achieve this. Am I missing something obvious?
Thank you in advance, sirs and madams.
Last edited by gaekwad (2012-09-07 20:07:07)
Offline
Re: Article footnotes/citations and hyperlinks
Recent versions of Textile (Txp 4.3.0+) have this feature built in. It’s called Linked Notes. Documentation is a little thin on the ground, although you can see them in action at txstyle.org or on the sitemonks test page. You can also see examples if you look in the lib/classTextile.php file: in the documentation header info, around line 130ish, is some explanation of how to do it.
That should get you going.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Article footnotes/citations and hyperlinks
Thanks, Stef – just the job.
Offline