Login / Logout Link

Permalink Browser Info Environment
Hi Ramon,

what do you think about the possibility to add a login/logout link?
Its often needed. There is a free Add-On for a Login/Logout Link already at the marketplace (https://www.concrete5.org/marketplace/addons/loginlogout-link) but I think in your List Designer makes it more sense.

Best
Torsten

Type: Pre-Sale
Status: In Progress
tsilbermann
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Torsten,

That would be a good addition. Do you have any other links you can think of, except login/logout? I'm thinking "Register", "Edit Profile" and things like that. Let me know what you think (specific ones).

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Hi Ramon,

In Core theme the "Login" link changes after login to "user name" (clickable- links to user profile) and "Logout"
I like this behavior. Optional Font Awesome Icons (implemented in core I think) like a lock (locked/unlocked) would be nice too.
Register would be a nice option but its just a link to login page - right?

Best
Torsten
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Torsten,

With List Designer YOU decide what's inside your list and what text it has. So I'd rather not change/overrule the title from a list item.

What I can do though is hide/show links based on the presets. Logout/Edit Profile/My Profile/My Messages is only available when logged in, Login/Register is only available when NOT logged in. You can add all these presets however you'd like. So if you do not with a Logout item, just don't add it in the list. Same goes for Register. So you can customize however you want. Does that make sense?

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Ok that makes sense and is more flexible.

What do you think about a login function like here:
http://www.concrete5.org/marketplace/addons/popup-login/...
I think it was possible to redirect to the page where the user was before login.
This function is very nice.

I'm not sure if bootstrap css from core is always loaded - if yes you can use the bootstrap modal function for the pop up.
ramonleenders replied on at Permalink Reply
ramonleenders
Torsten,

Bootstrap is not always loaded, so that's not an option. You can of course script this modal yourself and use List Designer with the "Bootstrap modal" item type!

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
OK thats an idea. If you could add the show/hide when logged in/out function - that is very helpful I think. For other scenarios as well.
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Torsten,

You can download version 0.9.6. Do let me know if you have questions/suggestions!

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Hi Ramon,

works all well :-)

How about the option to hide/show items only when users logged in.
Is it to specific?

I find it useful:
Showing a "Support" link or hiding link like "pre-sale question" for logged in users.
Its also possible to build a login modal than.
ramonleenders replied on at Permalink Reply
ramonleenders
Perhaps it's better to use "Permissions" for that? So if you set "Who can view this page?" to "Registered Users" only, only they can see it. If you put it on "Registed Users" and some other user group, that's fine too. This way you keep the Concrete5 approach. There is no check yet for those permissions, but if you like that idea, I can put it on the todo-list!

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Hi Ramon,

thats right - for pages / files its easy to realize with permissions. I have modals in mind - but that's not a working function for concrete5 at the moment I think. There are ideas from developers how to embed modals (from stacks e.g.) and its possible to hide/show the links that calls the modal (mostly buttons) with stack permissions - but its not a "standard" so every theme developer handles modals different.
I thought abut calling the modal (what has a stack inside - e.g. a form or a video etc.) from List Designer would be nice. But its only possible to set stacks permissions it don't shows/hides the link in list designer.
ramonleenders replied on at Permalink Reply
ramonleenders
Torsten,

You are right, yet again! Would it make sense to make some sort of permissions per list item then? So you can check the same checkboxes as in Page Permissions, but in this example for each and every list item you make in List Designer?

Perhaps first check a checkbox to use Permissions at all, then when checked, the user groups will slide down.

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Hi Ramon,

integrating the concrete5 permission system would be the best. Because everything can overwrite the given permissions from parent item (area/page/page type/set etc.) Why not a list item in list designer. I don't know how much work it is to integrate that...
I think its a nice feature that makes list designer universally usable.

Enabling permissions could be a checkbox in list designer settings. When enabled, an icon beside the list item that opens the permissions dialogue window would be nice - maybe it changes the color when permissions manually overwritten.

Best
Torsten
ramonleenders replied on at Permalink Reply
ramonleenders
What do you mean with "Why not a list item in list designer"? Adding permissions would be needed for every List Item Type, right? So not sure what you mean with list item.

I'm not sure what is possible/doable with the current setup, so I will see what I can do!

Kind regards,

Ramon
tsilbermann replied on at Permalink Reply
tsilbermann
Yes, I mean permission for every list item. Item= list entry (link)

concrete5 Environment Information

5.7.5.2

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.