]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/toggle/discussion.mdwn
ikiwiki (3.20130711) unstable; urgency=low
[ikiwiki.git] / doc / plugins / toggle / discussion.mdwn
1 ## Nested plugins
2
3 Is it possible to use another plugin into your toggle plugin? For example,
4 I want to have toggleable table and try to use [[Victor Moral|users/victormoral]]'s [[table plugin|plugins/table]],
5 but no success. How can I do it?
6 --PTecza
7
8 > Yes, you can nest preprocessor directives. However, due to the issues
9 > discussed [[here|todo/nested_preprocessor_directives]], it's not
10 > currently supported to nest multiple levels of the same quotes.
11 > --[[Joey]]
12
13 >> Thanks a lot for the fast reply, Joey! It's good to know it.
14 >> --PTecza
15
16
17 ## [[bugs/Bug_when_toggling_in_a_preview_page]]
18
19 ----
20
21 ## Using toggle directives in a list item##
22 Take this code snippet.
23
24     * [[!toggle id="test" text="test"]]
25       [[!toggleable id="test text="""toggle"""]]
26
27 In the HTML-output the `ul` and `div` overlap.
28
29     <div id="content">
30     <ul>
31     <li><a class="toggle" href="#test.test">test</a>
32     <div class="toggleable" id="test.-test"></li>
33     </ul>
34     
35     <p>toggle</p>
36     
37     </div>
38     
39     </div>
40
41 Fixing this manually the Javascript seems not to be working and `toggle` is shown unconditionally.
42
43 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