Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-16 17:43:07

minusf
Member
Registered: 2005-02-15
Posts: 104

in page anchors

hi there,

i am trying to make a page anchor:

"this is a link inside the same page":#anchor

what is the textile syntax to assign the anchor to that h2?

h2. i want the anchor to jump here

it is very often used for table of contents of course.
i always forget the syntax and it’s not in any of
the textile documentations…


we is experts™

Offline

#2 2009-09-16 17:56:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: in page anchors

Hi minusf

try h2(#anchor). i want the anchor to jump here

Last edited by colak (2009-09-16 17:56:33)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-09-16 18:14:59

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: in page anchors

yeah, thanks. i forgot it’s done with id= these days.
there could be an example in the docs for people like me :]


we is experts™

Offline

#4 2009-09-16 21:01:33

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: in page anchors

On a related note, there’s soo_toc table of contents generator, which automatically creates a nice, linked index based on headings used in an article.

Offline

Board footer

Powered by FluxBB