Anchor / Goto BBCodes
Posted: Sun Jun 01, 2014 9:27 pm
These have been in a little while now, but I didn't go out of my way to publicize them till I could be sure there were no probs...
I've added some BBCodes that allow you to link to other parts of the same post. Like, say, create an index entry at the top that links you to a later section. This is obviously most useful for extra long posts..
eg. an index like: Frogs
To do this, for your link you create a tag like:
And then down at the actual section you link to you can do either:
The above will give you an invisible anchor, so you add your section or subject heading after, if you wish.
OR:
The above will turn your actual section heading into a link which references itself. Mostly kinda useless I think, but other sites I looked at had this option so I left it in.
So the index I created at the top of the page should link to this section:
Frogs
Frogs, frogs, frogs, frogs.
I've added some BBCodes that allow you to link to other parts of the same post. Like, say, create an index entry at the top that links you to a later section. This is obviously most useful for extra long posts..
eg. an index like: Frogs
To do this, for your link you create a tag like:
Code: Select all
[goto=<unique id>]wording for your link[/goto]
Code: Select all
[anchor]<unique id, same as you used in the index>[/anchor]
OR:
Code: Select all
[anchor=<unique id, same as you used in the index]Section / subject heading[/anchor]
So the index I created at the top of the page should link to this section:
Frogs
Frogs, frogs, frogs, frogs.