1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I create page node anchor links?

Discussion in 'XenForo Questions and Support' started by Stuart Wright, Jul 13, 2013.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    I want to create links within a page. Actually within a tab within a page.
    The usual
    HTML:
    <a href="#general">General</a>
    ......
    <h3 class="textHeading"><a name="general">General</a></h3>
    
    takes me to
    Code:
    http://xf.avforums.com/sandbox/#general
    What am I doing wrong please?
     
  2. xf_phantom

    xf_phantom Well-Known Member

    y
    you'll need to use the full url


    http://xenforo.com/community/threads/anchor-links-to-mainpage.33015/
     
  3. Stuart Wright

    Stuart Wright Well-Known Member

    Thanks. I added {$requestPaths.requestUri} to the links, and that works within a tab when it's open, but is it possible to link to anchors in other tabs which opens the tab?
    HTML:
    <ul id="rulestabs" class="Tabs tabs" data-panes="#rules > li">
    <li>
      <a href="rules1">Primary Rules</a>
    </li>
    <li>
      <a href="rules2">Trading Rules</a>
    </li>
    <li>
      <a href="rules3">Tab3</a>
    </li>
    </ul>
    <ul id="rules">
    <li>
    
    Tab 2 - Trading Rules has lots of anchor tabs. Is it possible to link directly to an anchor within that tab?
     

Share This Page