In dokuwiki how can I hide "media manager" link or any other link on the top, from non logged in users?
相关问题
- Upload file using curl command line in dokuwiki
- Dokuwiki Proxy: Could not connect Permission denie
- How to escape “code” tag in an XML code block in D
- Dokuwiki with LDAP error: User authentication is t
- DokuWiki with SVN: how and what should be under so
相关文章
- Upload file using curl command line in dokuwiki
- DokuWiki的:我怎么能隐藏媒体从非登录用户管理器链接(dokuwiki: how can I
- 选项以编程方式更新DokuWiki的页面内容(Options to update dokuwiki
- Dokuwiki Proxy: Could not connect Permission denie
- How to escape “code” tag in an XML code block in D
- Dokuwiki with LDAP error: User authentication is t
- DokuWiki with SVN: how and what should be under so
- dokuwiki: how can I hide media manager link from n
My solution will may be hide too much information, but here we go:
I wanted only the sitemap to be visible to visitors and registered users (I use the site as a blog), so only wanted recent changes and media links to be visible to me (administrator).
This is the code I changed in "Greebo", in inc/Menu/SiteMenu.php
Create a plugin. Let's assume the plugin name is
nositetoolsanon
, so you need to create a file underlib/plugins/nositetoolsanon/action.php
.This method applies to any template and won't be overwritten by updates.
HINT: If you want to hind namespaces for users who are unable to read, try to set
$conf['sneaky_index'] = 1
in the config file, though it may cause issues if deeper namespaces have higher permissions than the ones above.one way is changing the template like this: in /lib/tpl/dokuwiki/tpl_header.php:
If no user is logged, $INFO["userinfo"] is empty
in /lib/tpl/dokuwiki/tpl_header.php replace
with
Not exactly what you're looking for (and maybe a bit late anyway), but here's a way to disable the
Media Manager
link for all (including logged-in) users:disableactions
);media
(see reference here).Note that this will hide the link for everyone, but users with writing access can still launch the media manager by clicking on corresponding button when editing pages.