Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Is it possible to hide text on a page for admins
Avatar
nickobree #1
Member since May 2015 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Is it possible to hide text on a page for admins
I'm just wondering, if it would be possible to put information for admins on a page, which is hidden to normal users, but admins can see.
Avatar
Torpedo #2
Member since Aug 2014 · 81 posts
Group memberships: Members
Show profile · Link to this post
https://www.dokuwiki.org/plugin:showif
https://www.dokuwiki.org/plugin:nodisp (<- check the compatibility)
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
The nodisp plugin hides text from the page as displayed in the browser, but it can still be be viewed if the page source button is clicked or if the user clicks on the browser's view source button.  As explained on the nodisp plugin page, the only way to hide a page effectively is to use the include plugin which enables ACL rules to be applied to the included text.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
There's a substantial upgrade to the nodisp plugin which makes it possible not just to hide text, i.e. the text is still passed to the browser, but to prevent the text from being sent to the browser altogether, based on the user's acl rights.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2019-03-01, 21:52 by turnermm.
Avatar
Michaelsy #5
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Hi @turnermm,
I'm a bit confused. Where is the current thread by asking this question? (This is from the year 2015.) In the current thread I also participated. But I can not find that anymore.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited on 2019-03-01, 22:25 by Michaelsy.
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I couldn't find the current thread, so I did a quick search and found this one.  But if you have a link to the current, please post it.  Thanks.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #7
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
I have already searched intensively. It must have been deleted or something like that.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Thanks, Michael.  That was also my experience.  The ability to selectively suppress text seems so basic, and the only way to do this until now has been to use the include plugin.  This upgrade to nodisp still has to be tested in the wild, of course, but I don't think it will cause any problems.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #9
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Good idea!
However, one should be aware that the hidden text is still readable in the wiki source. If necessary, you have to lock the insight into this.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
data/pages should be blocked from direct web access, so then only individuals with server access can view the source.  This plugin prevents the hidden text from leaving the server, unless the viewer is logged in and satisfies the acl requirements.  There's nothing a plugin can do to secure a poorly secured server.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #11
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Of course, the server has to be secure, otherwise the whole ACL will not help anymore. But I do not mean that.

What I mean is something like this, when you are logged out but the view source action is still enabled (this is the default setting):
http://dw-livedemos.informantum.de/doku.php?id=start&d…
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #12
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
But in the updated version, the text marked up for no display is not sent from the server to the browser.   But  if  you want the security of hidden text, then you will have to disable Dokuwiki's view source in the configuration manager.   I'll  have to make a note of that on the plugin page.   It escaped my attention altogether!  The view source doesn't make an attempt to render the page but simply loads the original wiki page into the editor.  I'll see if I can disable that feature on a per page basis, as needed.

 Many thanks for raising this issue
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited 2 times, last on 2019-03-02, 04:26 by turnermm.
Avatar
turnermm (Moderator) #13
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Removed text marked for nodisplay from dokuwiki's view source.  Thanks again, Michael.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-17, 12:17:30 (UTC +01:00)