hiding/displaying list items based on cookie values

2021-09-11 Thread Gary Kephart
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

Re: hiding/displaying list items based on cookie values

2021-09-11 Thread Dirk Frederickx
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