Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » SS 2.1.0 rc 1: ACCESS tab explanation

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1315 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    SS 2.1.0 rc 1: ACCESS tab explanation Link to this post

    So, in this new release there's an access tab where we can control to who pages are displayed.

    The choice is between anyone, 'logged-in users' and 'only these people'.

    Now, from 'logged-in users' I understand that it relates to people who are logged in to the backend? Correct me if I'm wrong please.

    And from 'only these people' I understand that we can make groups in the security section, to whom we grant no specific permissions (as there are only backend permissions, so these aren't relevant to the frontend). After making those groups we can choose these groups in the access tab to display it to. The question that comes immediately to my mind is: how can these people log in to the front end? Are we supposed to code a loginform ourselves, is there somewhere some information about this? This because I cannot find a 'login form' like there is a 'contact form' in the behaviour page type tab.

    Any answers appreciated a lot.. many thanks.

  • Matt
    Avatar
    Core Development Team
    84 Posts

    Re: SS 2.1.0 rc 1: ACCESS tab explanation Link to this post

    dio5: You've almost got it, there's just a couple of key differences.

    When the CMS says 'logged-in users', it means any logged-in user, not just one with admin rights to view the backend. For example, forum members need to login to post a reply, but that doesn't mean they should have access to the backend, right?

    For the 'only these people' part, you've got the main idea right. You can, for example, create a Forum that is private to only a certain user group, and then hide it from everybody else by selecting 'only these people' and choosing your user group from the dropdown.

    If a user requests a page that has 'only these people' permission set, and they're not logged in (or not in that user group), they are automatically sent to the login form. If they successfully login and can access the page, they're forwarded back to the page they requested initially.

    Hope that helps

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: SS 2.1.0 rc 1: ACCESS tab explanation Link to this post

    Ok I think I get it

    What I'll be needing actually is not how to hide certain pages but certain kind of content based on a category... The categoryHolder-page will fetch tips with a certain category based on a $_GET['category'], but some content with for example a category of 'protected' is only for logged-in users.

    I'd also like to have people be able to register and adding tips through the frontend when they're signed up...

    I'm not sure how to build this in SS yet. I'll have to search more information on how to login and sessions in SS and how to make people register...

    Any more tips would be welcome.. like where I can find how to make a loginform for the frontend... which action, etc... I've been looking at this for 2 days now and can't find anything about it.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: SS 2.1.0 rc 1: ACCESS tab explanation Link to this post

    dios, download and look at the source of the forum module for some further insight into login/registration systems ...

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: SS 2.1.0 rc 1: ACCESS tab explanation Link to this post

    Guess I'll do that. I already figured out it has to be something with the Member-class

    1315 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.