Loading...
 
Skip to main content

Features / Usability


Wiki and categories

Hello, I've set a TikiWiki 5.3 installation. I've set the wiki and categories. I've an user with these permissions: tiki_p_add_object, tiki_p_remove_object, tiki_p_modify_object_categories (and many others). When I try to create a page with this user, I receive an error: "A category is mandatory". The problem is that, during the page creation, I don't see the tab for the category assignment (instead, I see it if I access as admin). Am I missing something? Thank you very much!
Does the user have the tiki_p_assign_perm_wiki_page permssion? You can set that in the global permissions by group (if you've created a group for this user).

Hello, thank you for the answer!
I can't find the entry you cited (tiki_p_assign_perm_wiki_page permssion). Anyway, the user's group (yes, like you said, I've a group for this user) globally has the permission tiki_p_assign_perm_wiki_page, but I don't see the 'Category' tab. 😑

I was having the same problem up until a few minutes ago (when I recalled seeing your thread... Thanks!) That perm is under Wiki and is 10 from the bottom. At least, it is for my 5.3 install. 😀

I also set had to set tiki_p_add_object, tiki_p_remove_object (both under Category) and tiki_p_modify_object_categories (under Tiki, 11 from the bottom). Once I set these four it worked peachy.

😁

-aric.

ps- If you haven't noticed it, there's a filter on the perm page that makes finding things dead easy... Just drop the perm name in and it'll filter right to it.

pps- Ok, spoke too soon. The above got the Categories tab to show up but I'm missing something that allows the user to actually change/set the category. Hmmm.... Will post back when I find it.

Ok, got it working now. Thing I missed above was that those changes didn't overwrite ones I made earlier on the Category objects themselves. Once I went back and reset them it worked fine and I can change both see and change the categories with the regular users.

Hope that helps!

-aric.


Thank you adatesman! I set the three permissions you've cited (tiki_p_add_object, tiki_p_remove_object and tiki_p_modify_object_categories) for the user's group, but I don't see the Category tab yet. 😑

I don't think (in my case) category permissions should overwrite group permissions because I don't see the tab also for new pages (which aren't assigned to a category yet). However, I don't see the Category tab also for pre-existent wiki pages. I never see the tab. 😑

I'm a newbie of TikiWiki, I'm surely missing some simple point... 😕

No worries, Yajo. And to be honest I'm a complete n00b when it comes to Tiki as well (read: I'm currently fumbling my way through setting up my first one). 😂

Sounds like you're running into a similar permission thing as I did, where there was a lower level permission somewhere overruling the higher level/global one. In my case it was on the individual categories, which were limited by groups.

Seeing my exact setup might help, so here's what I ended up with:

Global permissions (by way of Admin->Permissions):
Category Section:

  • Registered users- Can add objects in the category (tiki_p_add_object)
  • Anon & Registered users- Can see the category in a listing (tiki_p_view_category)
  • Registered users- Can remove objects from the category (tiki_p_remove_object)


Tiki section:

  • Registered users- Can change the categories on the object (tiki_p_modify_object_categories)


Wiki section:

  • Actually, nothing aside from the obvious ones needed for the Registered users to be able to add/edit Wiki pages. I had originally thought they needed "Can assign perms to wiki pages (tiki_p_assign_perm_wiki_page)", but this was incorrect and allowed the possibility of all sorts of unwanted mischief.


From there if I go into Admin->Categories I see my list of categories, each with the little key symbol next to the name. For my regular (available to everyone) categories that key is yellow/gold colored, meaning that the Global Defaults apply. My "Admin" category (which only the Admin Group can edit things belonging to it, but everyone can see) is green, noting that it has modified permissions. BTW, resetting the permissions to the Global Defaults is a simple matter of hitting the "Delete Category Permissions" button. Don't hit the "Assign" button afterward, as it'll then save the defaults as it looks like it'll save the defaults as a non-standard config and the key will stay green. Took me a while to figure that one out, but I'm not one to actually read the messages that pop up telling you what it actually did (which was reset them and not need to be reassigned). 🙄😂

These permissions are:
Category Section:

  • no one- Can add objects in the category (tiki_p_add_object)
  • Anon & Registered users- Can see the category in a listing (tiki_p_view_category)
  • no one- Can remove objects from the category (tiki_p_remove_object)


Tiki section:

  • Registered users- Can change the categories on the object (tiki_p_modify_object_categories) {Note- it might be possible to remove this permission, but I haven't tried it yet)


Wiki section:

  • Removed all permissions for Registered and Anonymous users aside from the ones needed for them to just view pages in that category (I need them to see but not edit).


In Admin->Groups, my Registered users have have the same permissions as the Global Defaults above.

The last place I'd look is Admin->Users, but I don't recall doing anything in there and frankly don't see anything obvious for assigning specific permissions to a user (which would make sense that's better handled on the group level).

Hope that helps! At the very least it helped me make sure I understand the logic of how Tiki applies permissions better, which is a good thing given that I'll be explaining it all next week to the guy who will be handling the admin side of the site I'm working on. 😬

-aric.

Oh, and one last thing... In fooling with this I went to Admin->Tiki Cache/SysAdmin a couple times and flushed all the caches. That solved the problem I was having yesterday with some categories not displaying, so figured I may as well give it a try for this as well.


Very thanks adatesman!
Following your hints I've solved!
I've needed to reassign all category permissions... Thank you again!