Conditional TOC

I would like to be able to set conditions for including a page or chapter in the table of contents.A lot of our modules have pages or entire chapters that are role-based. It would be great if, where you check "Include in TOC", you could say "include if [var] equals [x]".

Discussions have been disabled for this post