• Resolved jackennils

    (@jackennilsen)


    Hello!

    So far I was using the old, original plugin TOC+. Now I realized, it’s not maintained and it seems you took over the part by creating this fork.

    Quick questions here: Can I swap out the two plugins? Any adjustments I need to make? Any new features compared to the original plugin?

    Thanks
    Nils

Viewing 15 replies - 1 through 15 (of 18 total)
  • Steven

    (@shazahm1hotmailcom)

    Differences are many. Generally, the only code that currently exists/shared between the two is the code that scans the post/page content to generate the TOC. Even in that code there have been changes, bug fixes and filters added for other devs.

    ezTOC does not support TOC+ shortcodes such as [no_toc], [sitemap], [sitemap_pages], [sitemap_categories] or [sitemap_posts]. These were removed to focus on TOC only features.

    The most recent version of ezTOC did add the support for the [toc] shortcode to help those who wish to switch plugins but none of the TOC+ [toc] shortcode options are supported. It is only used for placement of the TOC on the page. That said the same options, and more, are supported as settings found on the post/page when editing the page/post in the admin. Generally speaking, I am not going to invest much time in supporting the shortcode as I wish users to use the Global settings found under the WP Settings menu tree and the settings found on the page/post when editing a page.

    ezTOC does have include all the features that existed in TOC+ in regards to the actual TOC plus a few minor additions such as replace a header with an alternate header TOC list item. Meaning a header in the post body can have alternate text displayed in the TOC list. Useful for when you have a long header and wish to have a more concise link in the TOC.

    Can you simply switch from TOC+ to exTOC? Really, that depends. If you only used the [toc] shortcode with no options and do not need the or have not used the other TOC+ shortcodes, then yes I would say you can easily switch.

    Hope I have answered your question thoroughly!

    Thread Starter jackennils

    (@jackennilsen)

    Thank you for taking the time to answer the questions. Much appreciated!

    Unfortunately, it seems I can’t switch to your plugin because of one big issue. The TOCs I use on my sites sometimes do only display the h2 and h3, sometimes only h2, sometimes h2, h3 and h4. It depends on the content of each individual page. Therefore I used to use the shortcode, which allowed me to choose the heading levels per page. Since you have removed these shortcodes, an important feature of the old plugin is gone for me.

    So I will have to stick with the old one or find another alternative.
    But thanks again for your time.

    Steven

    (@shazahm1hotmailcom)

    Those options are still available and can be set when you edit your page. However the shortcode itself does not support the options. Put another way, the shortcode will be used to display the TOC but the options will be ignored. To define which h tags are used to create the TOC, you will have to define them in the page settings and the shortcode will honor it. In short you can still define, per page, which h tags are used.

    So, if you have only a few pages with a TOC, you will be able to switch without much trouble as you will only have to update a few pages. However, if you have many pages, yes, switching would be very tedious indeed and would better off sticking with TOC+. If you unaffected by any bugs it may have or may not have, it should continue to work for quite sometime to come.

    Thread Starter jackennils

    (@jackennilsen)

    Interesting, didn’t know that. Then I’ll give it a try. I only have a few pages where I manually adjusted the behavior via shortcode. Most pages just use the “auto mode”.

    Thanks! ??

    I have migrated from the Table of Contents plugin to Easy Table of Contents. Using the same shortcodes [toc] the titles and subtitles of the posts are shown, but the liks do not work.
    Any suggestions?

    Steven

    (@shazahm1hotmailcom)

    @luisbezanilla

    Please share a link to the page with the issue.

    Thread Starter jackennils

    (@jackennilsen)

    I got the same issue when I tested the plugin. It had no functionality, so I kept TOC+.

    Steven

    (@shazahm1hotmailcom)

    @luisbezanilla

    Edit the page and ensure the “Insert table of contents.” is enabled. Does that correct it?

    Hello shazahm1

    I did not understand what you said. It is a post in WordPress in which I have introduced the shortcut [toc].

    Where do I have to enable the “Insert table of contents?” The table of contents is inserted in the post whose link I sent you. It is supposed that when you open the table of contents, the items that appear there have a link to the subtitle of the post. That does not work

    Steven

    (@shazahm1hotmailcom)

    @luisbezanilla

    Edit the page, scroll down to the Table of Content metabox … a box which contains many settings which can be applied to the toc. Here, please make sure the “Insert table of contents.” is enabled… enabled mean the checkbbox is checked.

    There is only “Disable the automatic insertion of the table of contents”. This is not marked.

    There is only “Disable the automatic insertion of the table of contents”. The checkbox is not checked.

    Steven

    (@shazahm1hotmailcom)

    @luisbezanilla

    Ok, hmmm… try removing the [toc] shortcode which should allow the auto insert to place it according to the define location on the Settings : Table of Contents admin page.

    Do the links work now?

    shazahm1

    Now the links are working. Is there a possibility to fix the position of the table by hand?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Differences between TOC+ and Easy TOC?’ is closed to new replies.