[pmwiki-users] invisible/visible text
Pico
pmwiki at ben-amotz.com
Sat Feb 11 23:14:06 CST 2006
Patrick R. Michaud <pmichaud <at> pobox.com> writes:
>
> On Fri, Feb 10, 2006 at 03:40:48PM -0700, H. Fox wrote:
> > Some other possibilites:
> >
> > (:showhide hiddenlink="Click for more...":)
> > Text.
> > (:showhideend:)
> >
> > or
> >
> > (:toggle:)
> > Text.
> > (:alternate:)
> > Other text.
> > (:toggleend:)
>
> Yet another possibility:
>
> (:showhide foo:)
> >>id=foo<<
> text text text text
> >><<
>
> This allows the show/hide button to be rendered separately from
> the thing that is being shown/hidden (e.g., in a sidebar).
>
> In fact, it could even work for a sidebar or any other component
> of a page:
>
> (:showhide wikileft:)
>
> Pm
>
I have been playing around with this same idea of expanding
and collapsing text.
To test it out I started with ConditionalMarkup and ViewModes,
because I don't (yet) know enough to do any of this from scratch.
My test page is at ViewModes/Nested Text.
http://pmwiki.org/wiki/ViewModes/NestedText
What you are talking about here would be much better
than using ConditionalMarkup and defining new variables
and conditions, because it can address the issues of
selective expansion and maintaining the prior location in the page.
Pico
More information about the pmwiki-users
mailing list