dokufreaks / plugin-discussion

Add a comments section to DokuWiki pages
https://www.dokuwiki.org/plugin:discussion
GNU General Public License v2.0
35 stars 26 forks source link

Auto hide discussion plugin #339

Open danielreckel opened 1 year ago

danielreckel commented 1 year ago

is it possible to auto hide the discussion until a user want to see it? If i hide it through the button it appears again by visiting the page again. I should be hide all the time until a user want to see it

Klap-in commented 1 year ago

That button has some javascript that show and hides that section. https://github.com/dokufreaks/plugin-discussion/blob/4595a8de7944ebf0a48902862d00d664ecadee56/script.js#L102-L106 The toggle function uses css to show/hide that section. You could add to your conf/userstyle.css some css to hide the section initially. https://www.dokuwiki.org/devel:css#user_styles

cardi-m commented 1 year ago

same issue, @danielreckel have you solved it? I have no skills in js.

danielreckel commented 1 year ago

sorry i did try it, but running in problems - i will ask a collegue of mine

cardi-m commented 4 months ago

hello @danielreckel. Had you solved it maybe?