Thread:Project:Support desk/TOC in left menu outside the artice area

Hello,

I want to display the TOC outside of the article itself, on left menu side. I tried to work thought the API, but all the methods did generate empty results. Maybe someone could guess a parameter it is missing?

// https://doc.wikimedia.org/mediawiki-core/master/php/html/classParserOutput.html#a7ed0b2a21f9eed4adce4aa7457f45b5f ParserOutput::getTOCHTML; // https://doc.wikimedia.org/mediawiki-core/master/php/html/classParserOutput.html#a7fd87771bccecca0a63b146b01462748 //global $mTOCHTML; $mTOCHTML; // ParserOutput::getSections; // this results to empty return count(ParserOutput::getSections); // returns 0 // https://doc.wikimedia.org/mediawiki-core/master/php/html/classLinker.html#ad5c07fe25c9b0840ee14a5f25c8175be // static Linker::generateTOC 	( 	$ 	tree	) 	[static] Linker::generateTOC(ParserOutput::getSections); // this generates an empty TOC // https://doc.wikimedia.org/mediawiki-core/master/php/html/classLinker.html#a50be88a27322e8afc9479f2575460eb9 // static Linker::tocList 	( 	$ 	toc,$  	lang = false ) Linker::tocList("Test Entry"); // this generates a TOC with entry "Test Entry"

Greetings Oliver