Question
It appears you can not use a TOC variable in a template or skin. even if you hard code the topic's name as a parameter to TOC it only shows on pages other than the indicated topic. Please help.
Environment
--
JohnStucki - 06 Mar 2005
Answer
I do not think that this is possible with the current implementation since the current topic text is taken if the
Web.TopicName matches the current topic. This is for efficiency and to get the correct TOC in preview (before save). There are several renderings per page. One is for the skin/template template text, another one for the topic text, etc.
You could overload the TOC handling in a Plugin (or add code to your
DefaultPlugin) so that the TOC handler is always reading from the file to get the current topic text.
--
PeterThoeny - 06 Mar 2005
see also
TocOfBaseTopicInIncludedPage
--
WillNorris - 06 Mar 2005