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.

Archive

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

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

Building a Client Area


Reply

5 Posts   56438 Views

Avatar
aesop

19 April 2008 at 8:17am Community Member, 2 Posts

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

19 April 2008 at 10:09am (Last edited: 19 April 2008 10:12am), Forum Moderator, 921 Posts

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 [url=http://www.silverstripe.com/modules/]gallery module[/url] (or you could build your own using a plugin like [url=http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/]jqGalScroll[/url], 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

19 April 2008 at 11:45am Community Member, 2 Posts

Thanks, Sean. I'll start digging in.

Avatar
Willr

19 April 2008 at 6:29pm Forum Moderator, 5511 Posts

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

20 April 2008 at 1:22am Forum Moderator, 921 Posts

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: [url]http://open.silverstripe.com/ticket/1542[/url]

Sean