Open michitux opened 11 years ago
Use ful suggestion in #75 : add the number of comments to the closed header.
I've put on my wiki this plugins and i succeed to change that.
Just add in the files discussion/style.css this line
That's work for me, the discussion panel is closed by default. If you right click on your wiki page on the button discussion, and choose "inspect element", you can see a "div" with ID "comment_wrapper" That this one who change when you hide/show the plugin.
Hope it'll help you
unfortunately discussions are easily overlooked this way... Is there maybe a way to only collapse the comment_wrapper if there are any comments?
Also the button should say "show/hide discussion" instead of just "show/hide". It maybe would also be nice to directly see how many comments there are directly on the button.
@algorys thanks, this worked for me.
I see several problems with the show/hide button:
My suggestion for solving these issues is to completely remove the button and instead introduce something very similar to this arrow that is used for the table of contents and in the new dokuwiki template also for the sidebar in the tablet/mobile mode, i.e. the heading of the discussion section would be the trigger for showing/hiding the discussion section with an arrow (that might be a bit larger than the one in the new dokuwiki template) that indicates the functionality and a tooltip that describes it and is translated.