Loading...
 
Features / Usability

Features / Usability


Settings a default category and forcing some users to set category

posts: 4

I have the following use case:

Only registered users have access to the wiki.
There is a group for advanced users, let's call it "Admins".

The is a restricted category "Admins" that only admins can see.

My target is that "Admins" always have to select a category when they create a new page. I do not want to bother normal registered users with category selection so they should post to no category or a default category (by default).

Here is what I found out so far:

  • it is possible to create a default category for a group. However for some reason this setting only works for users who have that group as "default group" which - as far as I can tell - is not possible to automate. So I would have to give them this default group manually whenever a new user registers. The solution would be a "default default group". Either way the "default group" setting is very confusing and almost undocumented.

  • If I manually give registered users this default group with a default category, the wiki pages created by them will automatically get that category. However if I then enable the check that each page must have a category, that check is evaluated before the automatic assignment of the default category is done. So in a nutshell Tiki the current behaviour is this: \\
    1. User creates page
    2. User tries to save page without setting category
    3. Tiki does not set the default category
    4. Tiki complains about a missing category

When the correct behaviour would be

    1. User creates pages
    2. User tries to save page without setting category
    3. Tiki assigns default category
    4. Tiki saves the page with the category without bothering the user

Is that the intended behaviour?

Does anyone have any hints on how to enforce this? Another idea I had was using a perspective that only adds the "enforce a category" for "Admins". However I found no way to force a perspective on a group of users.

Looking forward to your replies!

posts: 19
  1. Enable "categorize structure pages together" in administration settings
  2. Set tiki_p_modify_object_categories, tiki_p_add_object, and tiki_p_remove_object(optional I believe) as global permissions for your group (I just have it set for registered).
    • tiki_p_edit_structures may be necessary (I have it applied as a cat perm), but im not sure.

When a user adds a page it is automatically categorized (so long as they create it within their structure).

This works well in combination with categories which are set up so that only people in group A can see the structure A, and only people group B can see structure B, etc.