ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

(Solved) How to link within templates!?

November 20, 2007 5:57am

Subscribe [3]
  • #1 / Nov 20, 2007 5:57am

    tomas.b

    8 posts

    Hello!

    Probably a dumb question but you never know…
    Problem is that I want to link from my main page to a specific #div within the blog-posts (comment pages).

    The code I have looks like this:

    <a href="http://{url_title_path=">Read/view comments</a>

    ...and normally you would write (like in “back to top” links):

    <a href="http://whatever.htm#comments">Read/view comments</a>

    ...but I just can’t see how to do this (tried several different ways but nothing seems to work).

    /Tomas

  • #2 / Nov 20, 2007 10:45am

    PXLated

    1800 posts

    Hmmm…This appears to be a double post. Shouldn’t really do that. The moderators will move a post if necessary. Double posting makes the EE gods cranky 😊

  • #3 / Nov 21, 2007 3:50am

    tomas.b

    8 posts

    I tried to remove the other… sorry

  • #4 / Nov 21, 2007 3:58am

    tbritton

    714 posts

    Are you trying to link to an anchor on a separate “blog” page, “across templates” so-to-speak? Anchors shouldn’t work on dynamically generated content, of course, but I also wonder how you would duplicate such facility like we’re used to with anchors in html?

    Terry

  • #5 / Nov 21, 2007 4:36am

    tomas.b

    8 posts

    Yes, what I wanted was two separate links beneath each blog-post. One to the “full” post and one to the comments-section (#div anchor) on the “full” article page so you dont have to scroll down (if the article is long).

    Also I was somewhat interested how to link to different comments on different posts… but I guess you can’t do everything…

  • #6 / Nov 22, 2007 5:44am

    tomas.b

    8 posts

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases