]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/toggle/discussion.mdwn
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / doc / plugins / toggle / discussion.mdwn
index fe50414a0ede6e4f33c792eac26fbfaa71df54b8..ac22e7eb6046a1085f9d9d222e9d7354996cf30a 100644 (file)
@@ -1,4 +1,4 @@
-# Nested plugins
+## Nested plugins
 
 Is it possible to use another plugin into your toggle plugin? For example,
 I want to have toggleable table and try to use Victor Moral's table plugin,
 
 Is it possible to use another plugin into your toggle plugin? For example,
 I want to have toggleable table and try to use Victor Moral's table plugin,
@@ -14,21 +14,30 @@ but no success. How can I do it?
 >> --PTecza
 
 
 >> --PTecza
 
 
-# Bug when followed by a heading
+## [[bugs/Bug_when_toggling_in_a_preview_page]]
 
 
-Ikiwiki fails to render the line break between *foo* and *bar* when the following is toggled on:
+----
 
 
-[[toggle text="show"]]
-[[toggleable text="""
-    foo
-"""]]
+## Using toggle directives in a list item##
+Take this code snippet.
 
 
+    * [[!toggle id="test" text="test"]]
+      [[!toggleable id="test text="""toggle"""]]
 
 
-## bar
+In the HTML-output the `ul` and `div` overlap.
 
 
+    <div id="content">
+    <ul>
+    <li><a class="toggle" href="#test.test">test</a>
+    <div class="toggleable" id="test.-test"></li>
+    </ul>
+    
+    <p>toggle</p>
+    
+    </div>
+    
+    </div>
 
 
-# Bug when toggling in a preview page
+Fixing this manually the Javascript seems not to be working and `toggle` is shown unconditionally.
 
 
-When toggling an item while being in a web-editing session in the *Preview* frame,
-you'll lose the context of the editing session and will be directed to the wiki's
-main page instead.
+I do not know if this is due to [[shortcomming with nested preprocessor directives|todo/nested_preprocessor_directives]] you mentioned in the beginning of this page. Maybe a note could be added to the main page of the plugin. --Paul