]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/ikiwiki/directive/toggle/discussion.mdwn
Merge remote-tracking branch 'remotes/smcv/ready/openid'
[git.ikiwiki.info.git] / doc / ikiwiki / directive / toggle / discussion.mdwn
1 IMHO, i would be very useful to be able to customise the toggle indicator a little bit more. Something like the img directive parameters would be appreciated:
3 > You can also pass alt, title, class, align, id, hspace, and vspace parameters. These are passed through unchanged to the html img tag. If you include a caption parameter, the caption will be displayed centered beneath the image.
5 So that for instance:
7      \[[!toggle id="toggleable-id" text="Toggle" class="collapser"]]
9 could produce:
11      <a class="toggle collapser" href="#posts.toggleable-id">Toggle</a>
13 This could be extra-useful when using icons like [Font Awesome](http://fortawesome.github.io/Font-Awesome/icons/) so that the toggle link could be a nice icon instead of text.
15 -- Hugo