]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/plugins/toc/discussion.mdwn
template a red herring; toc vs. inline guilty
[git.ikiwiki.info.git] / doc / plugins / toc / discussion.mdwn
index a09ae57034525d9081f3c03bdb7f4a393d69bb18..028437dba987100bd96b9e099c7195c7f85517c5 100644 (file)
@@ -8,3 +8,12 @@ rendered content. --[[JasonBlevins]]
 Why doesn't the TOC appear in the edit page preview?  It only appears when the page is finally rendered.  This makes it somewhat difficult to organize headings, saving & re-editing all the time.  My user page currently has a toc to play with: --[[sabr]]
 
 > Fixed. --[[Joey]]
+
+Just ran into a side effect of `\[[!toc]]` being a NOP in pages
+which are inlined: pages with `\[[!template id=note text="\[[!toc]]"]]`
+wound up having the note rendered in feeds as "Use this template
+to insert a note into a page". Worked around this by making a local
+copy of the template and removing its `<TMPL_UNLESS text>...</TMPL_UNLESS>`
+section. Besides needing to generate guaranteed-unique anchor names,
+are there other reasons this directive couldn't be made to work on
+inlined pages?  --[[schmonz]]