We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22563
    • 63 Posts
    Hi there!

    I am still trying to figure out how things work in revo...

    My current problem is:
    If I want a member area -> I create a member group and assign resources to it

    But what if I want special pages for single (web)users, too? Do I have to create a group for each user and asign resources to it?

    Greetings
    pan!c
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: pan!c at Dec 26, 2009, 08:52 AM

      My current problem is:
      If I want a member area -> I create a member group and assign resources to it

      But what if I want special pages for single (web)users, too? Do I have to create a group for each user and asign resources to it?
      For now, yes; User-specific access policies will be added however in the near future.

      There are other ways to deal with this however, including using Template Variables to allow selection of a User from a User Group and writing a custom snippet to use this data to determine access rights.
        • 22563
        • 63 Posts
        ok, thanks.

        Which effects does it have if I create a user group as a child of another group?
        Does it in any way effect the visibility of resources assigned to one or to the other group (depending on the user and its group)?
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: pan!c at Dec 29, 2009, 12:30 PM

          Which effects does it have if I create a user group as a child of another group?
          Does it in any way effect the visibility of resources assigned to one or to the other group (depending on the user and its group)?
          At the moment the only effect of creating child UserGroups is organizational, though in the future we will be adding optional policy inheritance from parent UserGroups.
            • 22563
            • 63 Posts
            thank you for the quick info!
              • 32699 ☆ A M B ☆
              • 427 Posts
              For the single person stuff,

              If the content is pulled from a database simply run a snippet that 1) checks if it is the front end, 2) checks if the current user has a session (or is logged in), 3) pull the content based on their MODx internal key ( you did use that in the other table to join to, right?)

              and dump the contents into placeholders.

              This way you only create a single page for everyone, and MODx handles all of the ACL stuff so you can move along.
                Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                • 22563
                • 63 Posts
                this is currently over my head. but I will look into it...