Logged Out
Create an Account
Login:
Password:

Forgot your password?
On-page Linking


Back to the Tickets List

On-page Linking
Creator Quaiche
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Closed
Type Suggestion
Section of the Site Forum
Urgency (3 votes)
Rating (3 votes)
Description:
When creating large-ish guides like FAQs and such, it would be really nice to be able to do on-page linking. Could be just linking to the subtitle elements on the page, but even better would be letting us set our own anchors.

To go along with this, a [toc] element might be nice that auto-generates a table of contents based on the title and subtitle elements.
Official DKPSystem.com Comments
No official comments yet

User-Submitted Comments
These posts are also available on the forum with more features. This page is intentional simplified

View this info on the forum
[You must be logged in to post comments]
6100 days ago
Quaiche Said:
/bump
[You must be logged in to reply]
6100 days ago
Chops Said:
Sounds good to me. I've got this marked as "High Priority"
[You must be logged in to reply]
5901 days ago
Quaiche Said:
So we now have auto-TOC capabilities, which ROCKS!

Two questions:

1. Is there a [toc] tag that I can use to position the toc element where I want on the page? (I don't always want it at the top)

2. Do we have custom on-page linking yet?
[You must be logged in to reply]
5901 days ago
Chops Said:
I'm afraid there isn't a way to position it individually on each page. Though this is something that could probably be done.

As for on-page linking, you could actually make your own BBCode now.

To make an anchor tag, you could do it like this:

Regular Expression: /\[anchor=(\w+)]/i

Replacement: <a name="$1"></a>


Also, with FAQs, don't forget about the [collapse] tag that works like this:

How does our recruitment process work?
[You must be logged in to reply]
5895 days ago
Quaiche Said:
Perfect! Thanks
[You must be logged in to reply]
5413 days ago
tatonkaa Said:
Chops, im having trouble with this. I entered the data as you have it. Maybe im not using it right. Can you give an example of how to use the tags?

Do you need to use another custom bb for the link? Like a [goto]?
[You must be logged in to reply]
5412 days ago
Chops Said:
I'm sorry for taking a whole day to respond to this one:

To use an anchor, you end up linking to the anchor with #anchorname.

So, for example, using that code above, if you dropped an achor with [anchor=foo]


You would then move to that location with an url tag like this


[url=#foo]Go To Foo[/url]


Which would render like this: Go To Foo (granted this link won't do anything here on this thread, since there isn't an anchor here called "foo")
[You must be logged in to reply]