Gary,
You need to modify the collapsible behavior JS code at
.../jspwiki-war/src/main/scripts/behaviors/Collapsible.js
Check out the function buildCollapsibleList(..).
When it matches an "ol" element, it adds a .closed class to the li parent
element.
Hope this helps,
BR,
dirk
On Tue,
You mentioned:
By default the ordered-list (#) inside a %%collapse style are closed
(hidden) by default.
Does this also apply to unordered lists? If not, what's the JS to change
that?
Thanks,
Gary
On 9/12/2021 7:49 AM, Gary Kephart wrote:
Hmm. A bit more clunky, in that the readers will h
Hmm. A bit more clunky, in that the readers will have to do this on
every page instead of just one, but yeah, we could do it that way.
Thanks,
Gary
On 9/11/2021 11:43 PM, Dirk Frederickx wrote:
Hi Gary,
Tx for using JSPWiki !
For this use-case you may want to explore the use of %%collapse
Hi Gary,
Tx for using JSPWiki !
For this use-case you may want to explore the use of %%collapse (for
collapsible lists) or %%collapsebox.
%%collapse
# Book Title 1
## Spoiler content 1
# Book Title 2
## Spoiler content 2
/%
By default the ordered-list (#) inside a %%collapse style are closed
Problem:
I have a website that is a reference website for a series of books. It
has spoilers for the books all over the place. New readers of the series
would like to visit the site but avoid spoilers. Most of these spoilers
are in list items.
Solution:
What I'd like to do is to have a Settin