Questions answered by this recipe
How can I easily add toggle markup when editing pages? How can I add a toggle-button to the edit-gui-buttons?
pmToggleEdit adds a button to the edit-bar for easier addition of toggle-markup.
Requires the PmWiki Cookbook recipe Toggle to be enabled.
- edit page
- highlight region
- click the button that looks like a window-shade:
Output will look something like:
(:toggle id="tog1252880238887" show="Show message" init=hide button=1:)
By default, the text is hidden, and the show message is simply "Show message". A simple border-style has also been included. To ensure that divs can be safely toggled, the
- Install Toggle
- copy folders to your root - files will go into
button-template-22x22.gifis included for reference, but not needed for operation
- add the following line to you
TODO - further development
The use of css for styling would be preferable to the hard-coded style currently included.
ToggleEdit works with image-based GUI buttons. If you use an icon-based gui-button recipe, ToggleEdit will not work by default.
Hrm. Pretty boring, yeah? Use your imagination, and start filling it up.
See more buttons and ideas at Cookbook:GuiEdit
AddToggle - similar recipe