First of all, I'd like to say THANKS to all of the people that help Silverstripe, came true.
I've been trying to make a simple site (with no forum, or any-other mod) that allows, people to login/register and after that it should allow people to create their own articles, and only they could access it (excluding the admin's).
So far I've been able to manage myself, until I stopped at what I thing it might be a bug? (I'm not saying it is, I suspect it might be, that's all)
Ok here's the thing.
I added a MemberLogin.ss to themes/blackcandy/templates/Includes/ with the following code:
<% if CurrentMember %>
<p>You are authenticated has: <% if CurrentMember.Email %>$CurrentMember.Email<% else %>Anonymous<% end_if %></p>
<span><a href="Security/logout" title="log off">log off</a> |
<a href="edit-profile" title="Edit your profile">my profile</a>
<% else %>
<span><a href="Security/login" title="log in">Login</a> |
<a href="retrieve-password" title="retrieve password">Retrieve password</a> |
<a href="register" title="Click here to register">Resgister</a>
<% end_if %>
The I added: "<% include MemberLogin %>" right before "$Content" in themes/blackcandy/templates/Layout/Page.ss, so every page would show the 3 links that allow login/register/retrieve password.
After that I created a user, and logged in SS with it's e-mail and password, after that I click Logout, and the current page still says that I'm logged, I refresh it and then it shows that I'm logged out after all, then I click another page, and that one too says that I'm logged in... I have to refresh it again, and all the other pages...
Did I do wrong by puting: "<% include MemberLogin %>" in themes/blackcandy/templates/Layout/Page.ss? or is it the MemberLogin.ss, code?
Or is it a bug?
One more thing, how can I make a user in SS, to create its own pages/articles, and making those pages accessible only by its creator, besides having to create different groups for each user?
I hope I didn't get to confusing. English is not my primary language.