Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » 1 SS installation but multiple user databases

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1234 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    1 SS installation but multiple user databases Link to this post

    Hello everyone,

    I want to use silverstripe for some form of webapplication.

    I want users to be able to login and the can use the files i made from a master silverstripe installation.

    So each user can access the pages and store date online. The tric here is that every user has his / her own database.

    There will be only one cms which can be altered by me. The frontpage, where information is stored, is accessible by everyone who logs in.

    So pages will look like this:

    CMS
    Contains page 1, page 2, page 3, etc

    User 1
    page 1: shows user 1 information stored in database
    page 2: shows user 1 information stored in database
    page 3: shows user 1 information stored in database

    User 2
    page 1: shows user 2 information stored in database
    page 2: shows user 2 information stored in database
    page 3: shows user 2 information stored in database

    User 3
    page 1: shows user 3 information stored in database
    page 2: shows user 3 information stored in database
    page 3: shows user 3 information stored in database

    I hope i made my wish clear.

    Does something like this exists already?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: 1 SS installation but multiple user databases Link to this post

    Not sure if your question is clear or whether I'm not reading it correctly but you can access the the current member details in the template using $CurrentMember or in the PHP using Member::currentUser(); Either one gets you the currently logged user so you could change your code to use the ID of the member to show / hide information.

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: 1 SS installation but multiple user databases Link to this post

    I am not entirely sure what you mean either. To me it sounds like you want to extend the profile information provided by the member class, and display that across several different pages. So each user has unique information that is only available to them, and perhaps people they have shared that info with?

    If that is the case, then simply extending the Member class, then using $CurrentMember in your template should do everything you need.

    Cheers,

    Mo

    1234 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.