22976 Posts in 11702 Topics by 2826 members
|Go to End|
27 August 2010 at 2:29am
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:
Contains page 1, page 2, page 3, etc
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
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
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?
27 August 2010 at 9:24am
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.
1 September 2010 at 10:00am
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.
|Go to Top|