WordPress.org

Ready to get started?Download WordPress

Forums

Table of content
Very useful plugin (4 posts)

5 stars
  1. fredriley
    Blocked
    Posted 5 months ago #

    This is the best of the four TOC plugins I've installed and tested today, as it generates a TOC within the page, is closely configurable, and produces nested TOCs. It behaves slightly strangely, in that some of the TOC entries (eg "1. introduction") have the whole entry hyperlinked to internal anchors, whereas some others have just the TOC entry prefix (eg "1. ") hyperlinked. However, that might be to do with the text (written in Libre Office) which I copied into the Visual view.

    All in all, very useful, and thanks to the author.

  2. Sed Lex
    Member
    Plugin Author

    Posted 5 months ago #

    Thank you !!

    I do not understand your point regarding the "entry hyperlinked to internal anchors" ...

    The easiest is to paste the code of a incorrect header here so that I can see the problem ...

  3. fredriley
    Blocked
    Posted 5 months ago #

    You can view the page at:

    http://www.eurocall-languages.org/members/documents/editor-guide

    The full text of the first entry in the TOC "1. Introduction" is a hyperlink, with the source code:

    <p class='contentTable_h2'><a href="#Introduction">1. Introduction</a></p>

    The other entries just have the numerical prefix as a hyperlink, such as "2. WordPress Guides", which has the code:

    <p class='contentTable_h2'><a href="#_WordPress_guides">2.  <a name="__RefHeading__845_1245224731"></a> WordPress guides</a></p>

    This really isn't important.

    What's the "SL framework" you've used for development?

    Fred

  4. Sed Lex
    Member
    Plugin Author

    Posted 5 months ago #

    Just remove the <a name="__RefHeading__845_1245224731"></a> in your code and that shoud do the trick ...
    I a next version I will try to remove the html tag in the heading to avoid such issue

    The SL framework is a personal framework that I developed for accelerate the development of all my plugin ... any person may used it by downloading the dev-toolbox and create a brand new hello world plugin :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.