[Moin-user] Collapsible list macro

Radomir Dopieralski moinmoin at sheep.art.pl
Tue Mar 30 16:44:10 EDT 2010


Maybe that's a little convoluted, but if you really don't want to
write a parser (it's not that hard), you could write javascript that
looks for those lists you want and marks them up for the other
javascript.

On Tue, Mar 30, 2010 at 10:39 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> I'm looking for a means of adding a "collapsible menu" to my wiki.
> I've searched the Macro market, and various other places on the web,
> but haven't been able to find anything. Before I start writing my own,
> does anyone know of an existing bit of code that does this?
>
> Basically, I currently have a list in my wiki
>
>  * Title 1
>   * SubPageOne/SubSubOne
>   * SubPageOne/SubSubTwo
>   * SubPageOne/SubSubThree
>  * Title 2
>   * SubPageTwo/SubSubOne
>   * SubPageTwo/SubSubTwo
>   * SubPageTwo/SubSubThree
>
> At the moment, this renders as a normal 2-level bulleted list. What
> I'd like is for the list to initially render as only the top level
> entries (Title 1, Title 2) and clicking on a top level entry to expand
> it, showing the sublist below it. (The top level entries don't need to
> be links to pages themselves).
>
> There are some JavaScript libraries that do this sort of thing, but
> they need the list to have additional markup. I can't think of a way
> of adding the necessary markup to a MoinMoin list, so I'm guessing I'd
> need some sort of parser or macro to create an appropriately marked up
> list (unless anyone can point me at a JavaScript implementation that
> works on a plain, un-marked up list).
>
> Thanks for any pointers,
> Paul
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>



-- 
Radomir Dopieralski, http://sheep.art.pl




More information about the Moin-user mailing list