Home › Toolset Professional Support › [Closed] How to include a table of content if using Toolset templates?
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 12 replies, has 2 voices.
Last updated by Christopher Amirian 2 years, 8 months ago.
Assisted by: Christopher Amirian.
Hi,
I need a table of content in my posts. My first attempt was the Kadence Table of content block inside a page. The page contains a Toolset template and static content above and below it. The static content is not rendered, the template is though. I also tried this plugin, with the same result: https://wordpress.org/plugins/luckywp-table-of-contents/
After removing either Table of content block from the page, it's all fine again.
So it seems like Toolset is not compatible with these blocks, and similar cases have already been reported:
https://toolset.com/forums/topic/table-of-content-block-in-toolset-content-template/
https://toolset.com/forums/topic/table-of-contents-blocks-are-not-shown-kadence-and-ultimategutenberg/
Which Table of content block do you recommend?
Are you planning to release a Table of content block yourself?
Thanks,
Arno
Hi Arno,
We did not test any third-party plugins with Toolset regarding the Table of content, but you can use the Table view of a Views Toolset block.
Add a View block and in the first screen of setting that up you can select the table view. There you can add your content.
See if it helps.
Thank you.
Hi Christopher,
What I mean is an automatically generated list of links to all (h2) headers in a post. Like here: hidden link. That's not what I can do with a Toolset View, right?
If there is a way to do this with Toolset that's fine too. It does not need to be the Kadence block.
Thank you,
Arno
Hi Arno,
No, that is not possible with Views.
I created a clean installation of Toolset here:
hidden link
Also installed:
LuckyWP Table of Contents
Would you please go there and replicate the issue so that I can check?
Thanks.
Hi Christopher,
I was working on it but then the site stopped responding. I tried the Kadence Table of Content block too because that's the one I actually need. The one from LuckyWP was an alternative to test.
So far I did not get the exact same results yet in this clean install, but I did notice a problem when I enabled "non static content" in the Kadence Table of Content block. That made all content disappear, both static (h2+p tag) and dynamic (a Toolset template). I reported this to Kadence and will update here once I know more about it.
Thanks,
Arno
Hi Arno,
Thank you for the report. Kindly get back to us with the report result for Kadence.
Thanks
Kadence is still looking into this. I will update asap.
Arno
Hi Christopher,
I heard back from Kadence: "I'm not sure anything can be done on the Kadence side. The issue we ran into only happens when toolset is enabled. I'm looking into this to see if there is any way I can force toolset to work, but I'm skeptical that there will be anything I can do from a development side. However I am looking into this."
Meanwhile I managed to reproduce one of the issues in the clean install that you provided:
This is a page with only static content, including Toolset headers. The Kadence Table of Contents works fine: hidden link
This is a page with a Toolset View and some static content. The Kadence Table of Contents generates a link to the static header, and to the page title (but it should only link to h2) and it ignores the h2 in the view: hidden link. Somehow the Table of Contents is confused with the content and generates the wrong links.
Thanks,
Arno
Hi Christopher,
That is interesting, thank you. In the View loop, I replaced the Toolset Header block by the standard WordPress header block and used the Inline Field option to make it dynamic. Now, the Table of Contents works: hidden link
So I should avoid the Toolset Header block, at least for the h2 headings.
What does this tell us? What is so different about the Toolset Header block that it breaks the Table of Contents?
Hi there,
It seems that the Header Block codebase has a conflict with the Kadence table of content.
The Single Field method uses another codebase in Toolset and that works ok.
As there is a workaround, it will be a low priority for the development team to force the Heading block to be compatible with Kadence.
But I alredy reported this anyways.
Thanks.
I received an e-mail that this thread is about to be closed. I'm still waiting for Kadence to see if they can solve this.
A more general question: I'm running into quite some compatibility issues between Kadence and Toolset. This thread is an example. Another thread was about nested shortcodes that are required by Toolset but do not work in Kadence elements (there is a work around but it does not make things easy).
I did not expect issues like that because the two products are supporting/recommending each other: https://toolset.com/documentation/recommended-themes/.
Is it planned to improve the support for Kadence theme and blocks? Or is there a better theme and blocks plugin that goes well with Toolset and will be fully supported going forward?
Thanks,
Arno
Hi Arno,
There are no plans to keep the compatibility super up to date at the moment. But as per the question of this ticket, we reported this to the development team and as we offered a workaround there is nothing more that I can do.
Thank you for your understanding.
The topic ‘[Closed] How to include a table of content if using Toolset templates?’ is closed to new replies.