Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Show just specifics namespaces in the sidebar
Avatar
Zolyder #1
Member for a month · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Show just specifics namespaces in the sidebar
I have two namespaces with their pages:
-NP1:Page1
-NP2:Page2

Two counts:
-Admin
-User

Two groups:
-@ALL (this group has root permission "*" to READ)
-@project (permission "NP1:*" to READ)

I want to show JUST the namespace "NP1" in the sidebar. When I Login like User.
And when I login like admin, show all the namespaces, "NP1" and "NP2" in this case.

The problem is that I see nothing in sidebar when I login like User, I can see just one namespace but JUST if give permission root "*" to @project group. And this solve a bit because if I go to sitemap, I can see ALL THE PROJECTS and I want same view to sidebar and sitemap :(

I use ifauth plugin to give diferents sidebars to groups, but this plugin doesn't cover sitemap.
Avatar
Michaelsy #2
Member since Jun 2015 · 569 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
The config option sneaky_index is intended for this purpose. Be aware that not all index plugins does support this option (if I remember correctly).

HTH - Michael Sy.
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 2018-11-27, 11:03 by Michaelsy.
Avatar
Zolyder #3
Member for a month · 3 posts
Group memberships: Members
Show profile · Link to this post
Mmmm, it doesn't work with sneaky_index, I tried it but just work with sitemap, in sidebar don't show nothing.

I was using IndexMenu plugin for sidebar, and like you said, maybe this plugin doesn't support sneaky_index, so I used sidebar without plugins, I wrote this code:

  * NAME
    * [[NP1:Page1]]

 but problem persists. It's same problem with plugin or without:/
This post was edited on 2018-11-28, 19:30 by Zolyder.
Avatar
Michaelsy #4
Member since Jun 2015 · 569 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
According to documentation, the Indexmenu plugin should support the sneaky_index option. (It is the most used index menu plugin.)
See: https://www.dokuwiki.org/plugin%3Aindexmenu#about_acls

Do you use the ~~NOCACHE~~ option in the sidebar? Likely important in your case.

Edit: Please also note: https://www.dokuwiki.org/plugin%3Aindexmenu#acl_cache
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 2018-11-29, 01:27 by Michaelsy.
Avatar
Zolyder #5
Member for a month · 3 posts
Group memberships: Members
Show profile · Link to this post
I found the problem!! :D
It wasn't cache, I tried it too, but it was the same.

All that I did was put permission READ just to page "sidebar" and assign it to the group @ALL.
This made appear the sidebar  :nuts: :rolleyes:

I could understand it for this link: https://www.dokuwiki.org/plugin:indexmenu#about_acls
And imagine that because admin can see all, even without permissions. but for users I had to specify it and create the permission

Thanks Michael!
Avatar
Michaelsy #6
Member since Jun 2015 · 569 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
I have entered an appropriate note on the plugin page:
https://www.dokuwiki.org/plugin:indexmenu#i_see_nothing_in…
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
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: 2018-12-16, 08:01:01 (UTC +01:00)