]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/toggle/discussion.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[git.ikiwiki.info.git] / doc / plugins / toggle / discussion.mdwn
1 ## Nested plugins
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
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]]
13 >> Thanks a lot for the fast reply, Joey! It's good to know it.
14 >> --PTecza
17 ## [[bugs/Bug_when_toggling_in_a_preview_page]]
19 ----
21 ## Using toggle directives in a list item##
22 Take this code snippet.
24     * [[!toggle id="test" text="test"]]
25       [[!toggleable id="test text="""toggle"""]]
27 In the HTML-output the `ul` and `div` overlap.
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>
41 Fixing this manually the Javascript seems not to be working and `toggle` is shown unconditionally.
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