Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-10 13:11:35
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Anchor in permlink
Hey,
I want an anchor in mij <code><txp:permlink></code> so when I hit an article link it jumps to that anchor.
Like this <code><a href=“index.php?id=2#contact>Link</a></code>
Frederik
Offline
Re: Anchor in permlink
You could place the anchor next to the permlink like <code><a id=”<txp:title />”></a><txp:permlink><txp:title /></txp:permlink></code> or something similar depending on what you are anchoring to.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2005-12-10 15:47:33
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Re: Anchor in permlink
Working with an id is not the some as an anchor.
An anchor places #jumptoanchor after the url
Offline
#4 2005-12-10 16:46:03
- Neko
- Member
- Registered: 2004-03-18
- Posts: 458
Re: Anchor in permlink
Well, you could figure it out by yourself just by elaborating Stu’s example: use <code><a href=”<txp:permlink />#<txp:title />”><txp:title /></a></code>.
Offline
#5 2005-12-10 17:39:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Anchor in permlink
Konijn wrote:
Working with an id is not the some as an anchor.
An anchor places #jumptoanchor after the url
Do you have a div id=“content” somewhere on your page? Just try adding #content to the url!
Offline
Re: Anchor in permlink
Ah. You wanted a link to an anchor as opposed to the anchor. No matter. Neko has it.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1