When I do a search in my website "toc_collapse=0; Table of Contents" is written in the results of the content that used the Table of contents.

Is there a way to set TOC for the codes not showing up in search results?

CommentFileSizeAuthor
#2 capscreen.jpg55.63 KBchocolatfrog

Comments

AlexisWilke’s picture

I'm not too sure I understand what you're saying here...

Do you mean that if you read your page you actually see the variable "toc_collapse=0;" ?

If that's the case, would you mind pasting a URL to that page?

Thank you.
Alexis

chocolatfrog’s picture

StatusFileSize
new55.63 KB

thanks for the fast reply, its really appreciated.

Here are my TOC configurations :
- No automatic table of content
- In my type of content users specify in a drop down menu to Add the table of content at the top

I have add a capture screen of the search results on my website where we can see "toc_collapse=0;" tag.

AlexisWilke’s picture

chocolatfrog,

Pourrais-tu essayer avec la version de dévelopement. Je crois déjà avoir réparé ce problème.

Merci.
Alexis

chocolatfrog’s picture

Merci Alexix,

How to you think would be better to proceed? should I edit all my content that has a TOC attach to it and specify no Table of contents, clear the cache, reindex the search engine, then update the module with the dev version and reedit to reattach the TOC to my content?

Or simply updating to dev shoud be enough?

AlexisWilke’s picture

To make sure, you may want to first make a backup of you existing database.

Then copy the 6.x-3.x-dev version in your folder.

Finally, check one page and reset it if necessary (i.e. if it is in a cache, it will need to be "awaken" to display properly.) If that works, then you can proceed with resetting the whole cache.

Since this is a filter you shouldn't have to edit anything, it should just reprocess the node and show you the new result.

Thank you.
Alexis

chocolatfrog’s picture

Hi Alexis,

So I did what you told me and install the dev version. The "toc_collapse=0; Table of Contents" is still showing up, I have tried different settings: automatic at the top; manually inserting [ toc ] ; selecting add the table of contents at the top in the content type ; changing the imput filter to have TOC after HTML filter or even before it... and each time the "toc_collapse=0; Table of Contents" is there.

Odd behavior I noticed too... sometime de Table of Contents is absent even if it is selected in the content type. Yesterday in my test I have add the TOC on all my content type entries and this morning some page have their Table of Contents missing.... when I check the settings the "Add table of contents at the top" is selected for all of the pages and they have their tags < H2 > < h3 > (without any other HTML codes) in places. By clicking modified without changing anything, the Table of contents gets back.
In the 6.x-3.6 version this behavior isnt present.

intropedro’s picture

Hi chocolatfrog,

I had the same error and I just solved.

I have put 3-x version and in the order of the filters applied to an input type, I've put the last one and I was missing "toc_collapse = 0;"

I hope that helps you