In Nuwiki it was possible to force a TOC even if the minimum number of chapters in an article was not met. Does VW have something similar? FORCETOC is not working anymore after the import.
Printable View
In Nuwiki it was possible to force a TOC even if the minimum number of chapters in an article was not met. Does VW have something similar? FORCETOC is not working anymore after the import.
You can combine multiple parameters using the pipe | character like so:Code:[toc]FORCE[/toc] // forces the TOC if there is at least 1 headline
[toc]NO[/toc] // hides the TOC unless FORCE was used
[toc][/toc] // inserts the TOC here
[toc]BOOK[/toc] // if the article is in a book, merge the headlines with the book's TOC
[toc]NONUM[/toc] // don't number the items in the TOC
Code:[toc]FORCE|BOOK|NONUM[/toc]
// show the TOC all the time, merge with the Book TOC, and don't number the list
What is the query to replace all mentions of
to:Code:__FORCETOC__
Why does the importer not handle this?Code:[toc]FORCE[/toc]
If the importer didn't do this, it was a bug. The importer doesn't do this at the database level, but at the parser level. Doing it at the database level is a bad idea in terms of performance.
Then it is a bug.