]> sipb.mit.edu Git - ikiwiki.git/commitdiff
template a red herring; toc vs. inline guilty
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 15 Sep 2013 02:43:36 +0000 (22:43 -0400)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 15 Sep 2013 02:43:36 +0000 (22:43 -0400)
doc/plugins/toc/discussion.mdwn
doc/todo/fancypodcast.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]]
index 7ffff625216684af69dec2d99812591dac648386..128017021fb55eb900dc577779ddbc2f7a964ea7 100644 (file)
@@ -56,12 +56,6 @@ Episode enclosure  |(./)      |(./)       |(./)        |(./)
 
 ### Other ideas
 
-* Don't render template text (e.g., "Use this template to insert a
-  note into a page") in feeds.
-    * [[schmonz]] observes this in a dual-feed (one for enclosures,
-      another for browsers) scenario, but not in the typical case.
-      Remaining to be verified: that once migrated to fancypodcast,
-      this stops being a problem.
 * Optionally specify the enclosure's:
     * MIME type, in case `File::MimeInfo` guesses wrong.
     * Duration, in case `ffprobe` guesses wrong.