Help - Search - Members - Calendar
Full Version: Anchor to comments not cooperating
Movable Type Community Forum > Additional Resources > Tips and Tricks
johnkranz
Has anyone come across problems when using anchors for linking recent comments from the index page to the comment itself (located on the individual archive page)?

I've already tested that the proper link definition exists between the start page and the destination page, but the anchor URL does not properly resolve itself.

Since the right code is there, but the navigation seems to simply be ignoriing it, I'd like to find out if anyone out there has been able to get this to work.
girlie
Can we have a URL please?

(btw, please don't post twice for the same problem. wink.gif )
johnkranz
QUOTE (girlie @ Jul 4 2003, 10:49 PM)
Can we have a URL please?

(btw, please don't post twice for the same problem.  wink.gif )

Sorry for the duplicate posting.

Here is the URL: 216.234.240.53/index.html

I've set up some test recent comments to try and get the comment anchors to work, but to no avail. Looking forward to getting enlightened on this one....
milbertus
I think that your problem lies in the name of your comments anchor:
CODE
<a name="#2"></a>
<div class="comments-body">
<p>This is another test.</p>
<span class="comments-post">Posted by: <a href="mailto:test@test.com">Joe Tester</a> at July  4, 2003 11:49 AM</span>
</div>


You don't need the # in the name, just the comment id:

CODE
<a name="2"></a>
<div class="comments-body">
<p>This is another test.</p>
<span class="comments-post">Posted by: <a href="mailto:test@test.com">Joe Tester</a> at July  4, 2003 11:49 AM</span>
</div>


Hopefully that'll do the trick. smile.gif
johnkranz
QUOTE (milbertus @ Jul 5 2003, 03:11 AM)
Hopefully that'll do the trick. smile.gif

duhh...my brain was on vacation today. Thanks for catching that! It never would have registered....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.