Skip navigation
Currently Being Moderated

Same page navigation

Aug 6, 2012 4:46 PM

Good day to all!! I want to build a Table of Contents with the name title to some sections parts in the same page.  How can I do that? When I apply the anchor to the items in the table of contents, it just disappears. Thank you all!

 
Replies
  • Currently Being Moderated
    Aug 6, 2012 4:52 PM   in reply to Leviteno

    Post is not useful as it is.

    Please put your page online and post a link.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 5:28 PM   in reply to Leviteno

    You are asking us to help with code we can not see

    Post is not useful as it is.

    Please put your page online and post a link.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 5:52 PM   in reply to Leviteno

    Leviteno wrote:

     

    There is still no page, but thanks anyway.

    You are most welcome.

     

    I am curious, if you have not built a page, how have you determined it is not working?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 6:08 PM   in reply to Leviteno

    How can we help you?

     

    Can you let DW create a page for you, and then place a few test TOC entries and some target paragraphs lower dow the page.

    Then do your best to apply the named anchor code?

     

    Copy and paste your page code in a post here..

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 5:57 AM   in reply to Leviteno

    In general, here's the best way to do what you want -

     

    In the TOC at the top, you would have -

     

    <ul id="toc">

         <li><a href="#entry1">Entry1</a></li>

         <li><a href="#entry2">Entry2</a></li>

         ...

    </ul>

     

    Then on the page below this list you would have -

     

    <p id="entry1">some content</p>

    ...

    <p id="entry2">some other content</p>

    etc.

     

    Clicking on a link in the TOC would jump you down on the page to the paragraph with that same ID.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 7:49 AM   in reply to Leviteno

    You could write it as below if you don't want to use an unordered list (but its generally thought that a menu is a list so its good practice to use a list tag)

     

     

    <p><a href="#introduction">Introduction</a></p>

    <p><a href="#etymology">Etymology</a></p>

    <p><a href="#history">History Sociology: a debate</a></p>

    <p><a href="#philosophy">Philosophy of History</a></p>

    <p><a href="#methodology">Methodology</a></p>

    <p><a href="#historiography">Historiography</a></p>

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 3:12 AM   in reply to Leviteno

    Sorry,, but your post seems to have lost some text

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points