Jump to content
blynx

User as a child of a user

Recommended Posts

Hi,

is it somehow possible to add new users as children of other users?

I want to group users and thought that would be a nice structure to have groups of users put together as children of other users. Basically like:

Users
  Group A
    User 1
    User 2
    User 3
  Group B
    User 4
    User 5
    User 6
    User 7
  ... 

 I edited the user template to be able to have children and parents of user-templates - yet, whenever I add a child to a user it automatically will be appended to the 'Users' page. Also I cant move them from there, it says "You do not have permission to move pages using this parent - /backend/access/users/group-a/"

Couldn't find a solution so far - I think there is some intention behind it, because it is some admin/system stuff - but couldn't it be made possible?

-Steffen

Share this post


Link to post
Share on other sites

What about using user roles for this scenario instead?

  • Like 1

Share this post


Link to post
Share on other sites

Not sure if this solves your needs in another way, but check out this module:

https://processwire.com/talk/topic/5658-alpha-release-usergroups-page-based-permissions/

But, you might also be able to achieve what you want through some recent additions to dev which allows for parents for users:

http://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users

  • Like 2

Share this post


Link to post
Share on other sites

@marcus

I thought about that but I don't want to spam the roles with hundreds of groups.

Also I could add another page which hold those groups which hold the according users. I will try to do this now - but I thought that first solution would be something clever and 'semantically neat' ... uhm or so ...

edit:

@adrian

Aha!

I think I will try out the latest dev version - I think this is exactly what I thought of!

Thank you, both of you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By codevark
      The Minimal Site works fine, but if I try to login as admin, I have no idea what the credentials are.
      I did not do the "install" process myself. The OVA came with everything set up, but there's no mention of the PW admin credentials being set to some initial value.
      Wondering if anyone else has tried the Bitnami OVA and if there's a simple answer.
      --Pete
    • By neonwired
      I'm hoping someone has seen this before. There doesn't appear to be an issue with the user info.

       

    • By vwatson
      I don't have any fontawesome icons in the admin section. Not sure what's wrong. They used to appear. I've tried all the user profiles and they're gone in all of them.
      Using the browser inspector tool, I see this message:
      Access to font at 'https://www.domain.com/wire/templates-admin/styles/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'http://domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
      I'm not sure why this is occurring or how to fix it. Any help would be greatly appreciated. 
    • By Andi
      Getting a little deeper into the ProcessWire state-of-mind here. I seriously think I wouldn't have come back to webdev if it wasn't for this wonderful little gem of a CMS.
      I have an "Options" field added to all users on a site. If the user has anything other then "default" selected, I would like to show a permanent message in the admin like the one in the screenshot, only so that the user can't close it. As a friendly reminder that he changed that option from default to something crazy 🙂
      I've read up on how to send messages to users, but where would I hook into to make this show up all the time in the backend?
      https://processwire.com/api/ref/wire/message/
      Thanks in advance!

    • By BitPoet
      Here's a small new module that adds a "Manage tags" button to the template list, just like the field list already has.
      Easily add, remove and change tags for your templates.
      https://github.com/BitPoet/TemplateTagsEditList

×
×
  • Create New...