Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Building a Client Area


Go to End


5 Posts   56944 Views

Avatar
aesop

Community Member, 2 Posts

19 April 2008 at 8:17am

Okay, question for ya:

Say I want to have a client area that encompasses the following features:

1. Password-protected section for that client (one login form: "Client Area") that would allow access for multiple clients to specific sections based on the login. Although I realize you can give them access through the main CMS by allowing/denying access to various pages, I don't think I wouldn't want them going through the CMS.
2. The ability for the clients view galleries in specific pages/sections
3. The ability for clients to upload reasonably sized files and assets
4. The ability for clients to leave comments (on gallery posts) and send questions via a web form.

Ideas? I'm a newbie to Silverstripe.

Thanks in advance!

Avatar
Sean

Forum Moderator, 922 Posts

19 April 2008 at 10:09am

Edited: 19/04/2008 10:12am

1. Password-protected section for that client (one login form: "Client Area") that would allow access for multiple clients to specific sections based on the login. Although I realize you can give them access through the main CMS by allowing/denying access to various pages, I don't think I wouldn't want them going through the CMS.

A single instance of a log in form can be created by using $LoginForm in the template system, I believe. This means you could place it on the home page, for example, in it's own box.

2. The ability for the clients view galleries in specific pages/sections

Security is set in the CMS on a per-page basis, so you could put one set of client accounts into a group, and only allow that group to view the page, for example.

There's a SS gallery module (or you could build your own using a plugin like jqGalScroll, perhaps).

3. The ability for clients to upload reasonably sized files and assets

This will require a bit of custom development, but what you're asking for is not amazingly difficult. There's a lot of smart people on this forum who would be willing to help! :-)

4. The ability for clients to leave comments (on gallery posts) and send questions via a web form.

SS CMS has a page comments system that you can turn on by clicking "Allow comments" on the Behaviour tab on a per-page basis.

Cheers,
Sean

Avatar
aesop

Community Member, 2 Posts

19 April 2008 at 11:45am

Thanks, Sean. I'll start digging in.

Avatar
Willr

Forum Moderator, 5523 Posts

19 April 2008 at 6:29pm

this sort of member based stuff Im really keen on seeing documented. Theres not a huge lot on it. If you manage to get a system working it would be awesome to see a write up of it! Or if you getting a bit stuck feel free to ask questions on the IRC channel or forum. Couple pages that might help

http://doc.silverstripe.com/doku.php?id=recipes:overriding-loginform
http://doc.silverstripe.com/doku.php?id=permission
http://doc.silverstripe.com/doku.php?id=member

Avatar
Sean

Forum Moderator, 922 Posts

20 April 2008 at 1:22am

It's probably more of an area where a tutorial would be useful.

Those concepts like permission are key tools for it of course, but it's actually putting it all together where it's sometimes difficult to get started on. :-)

There's already a ticket for something like this: http://open.silverstripe.com/ticket/1542

Sean