Jump to content

planmacher

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by planmacher

  1. Hello,

    I can't get this module to work - perhaps you can help me.

    I have a very simple page tree:

    post-4233-0-33645900-1456996767_thumb.jp
    All of the first level pages (under "home" ) have the same template. So it is not possible to restrict a branch via user roles. But AdminRestrictBranch sholud do this... - but how?
     
    Lets say I woluld like to restrict the user "test" to the branch "projekte".
    So in the module under "how to match user t branch" I choose "Role Name:
    post-4233-0-55724700-1456997282_thumb.jp
     
    Then I add a new role "projekte":
    post-4233-0-02315500-1456997288_thumb.jp
    Which boxes do I need to check there?
    Then I add this role to the user "test:
    post-4233-0-96893300-1456997270_thumb.jp
     
    What do I have to set in the template options?
    post-4233-0-85591400-1456997292_thumb.jp
     
    Are there other permissions the user should get in oder to get this module to work?
    Whatever I tried - the result is: The users have same permissions to all the first level pages in the tree. 
     
    Would be great if you can give me some help ...!
     
  2. I believe it only can used with field=value, not with path or parent.

    So, one may define and add a hidden field to that template and hook into page::saveready and populate this field with a true or false value regarding if the current page has that parent or not.

    my_hidden_field=1
    

    If you want to go that road we can show some examples how to achieve that.

    Hello - I am new to ProcessWire and would like to go that way !

    Defining the hidden field is no problem.

    But where to hook into page::saveready ?

    Example would be very appreciated!

×
×
  • Create New...