Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2008-05-14 19:45:10
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: anchors in tables?
Actually I’d like to see the html output, not the entire page but just a part with one or two of the anchors in it.
And the html output of this code:
<a href="<txp:site_url />archive/2008#<txp:posted format="%B" />"><txp:posted format="%B %Y" /></a>
(You can strip your site url from it if you wish.)
Offline
#17 2008-05-14 20:13:31
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: anchors in tables?
Ooh ok, well here is the html output of the anchor usage:
<h1>Archives</h1>
<br />
Organized by month:
<br />
<br />
• <a href="/archive/2008#May">May 2008</a>
<br />
• <a href="/archive/2008#April">April 2008</a>
<br />
• <a href="/archive/2008#March">March 2008</a>
<br />
• <a href="/2008#February">February 2008</a>
<br />
• <a href="/archive/2008#January">January 2008</a>
And then the html output of the results:
<h1>2008 Archive</h1><br /><br />
<a name="May" id="May"></a>
<h3>May</h3>
<font color="#666">13:</font> <a rel="bookmark" href="/post/tidy-up">Tidy up</a>
<br />
<font color="#666">07:</font> <a rel="bookmark" href="/post/fancy-the-shop">Fancy the shop</a>
<br />
<font color="#666">04:</font> <a rel="bookmark" href="/post/movunday">MOVunday</a>
<br />
Oh keep in mind both of them are contained within the tables.
Last edited by Ruhh (2008-05-14 20:14:54)
<txp:Ruhh />
Offline
#18 2008-05-14 21:52:52
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: anchors in tables?
Wait a minute, shouldn’t your output be
<a href="/archive/2008/#May">May 2008</a>
instead of
<a href="/archive/2008#May">May 2008</a>
(so with a slash after 2008)?
Offline
#19 2008-05-14 22:07:24
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: anchors in tables?
No there is no slash. “2008” is an empty article set in the archive section.
<txp:Ruhh />
Offline
#20 2008-05-14 22:16:23
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: anchors in tables?
I see. In the meantime I tried the code on my test install, I changed your
<h1>2008 Archive</h1><br /><br />
<a name="May" id="May"></a>
<h3>May</h3>
to
<h1>2008 Archive</h1><br /><br />
<h3 id="May">May</h3>
put it in a table, and linked to it from another page with
<a href="/archive/2008#May">May 2008</a>
and it goes to the anchor nicely (tried it in two different browsers, Firefox and Konqueror). So I’m sorry, but I don’t know why it doesn’t work for you…
Offline
#21 2008-05-14 22:22:56
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: anchors in tables?
I did that, too. :/ I have no clue why it is not working for me.
<txp:Ruhh />
Offline
#22 2008-05-14 22:36:11
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: anchors in tables?
Do other existing id’s work as an anchor? Like /archive/2008#content?
Offline
#23 2008-05-14 23:04:41
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: anchors in tables?
Nope. I tried every anchor link. They still go to the top of page and not to the top of the month name.
<txp:Ruhh />
Offline
Re: anchors in tables?
May be your page doesn’t have vertical scrollbars? If so, nothing will happen – browser cannot scroll page to desired anchor.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#25 2008-05-15 00:12:08
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: anchors in tables?
Uh I do have the vertical scrollbars. It still goes to the top of page.
<txp:Ruhh />
Offline
Re: anchors in tables?
So… no chance to see your site?
Offline