Skip to content

Password protection. #14854

Answered by lampersky
13Groszy asked this question in Q&A
Discussion options

You must be logged in to vote

@13Groszy you could achieve cookie based access restriction this way, create a zone, a widget and the javascript rule.

So, the widget will be added to the zone, only when all rule conditions are met, in your case it is a simple check, if particular cookie exists.

Another idea is to use workflows, I've prepared an example for you. It isn't perfect, but I just wanted to give you a clue.


Recipe:
workflow.zip

First workflow is checking if cookie exists, if not it will return simple form to provide the password, otherwise it will redirect to content item. Second workflow is used as a target for the form.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 13Groszy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants