Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

georgeroubie/authenticated-user-layout-snippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Authenticated User - Layout Snippet

Snippets are Layout Elements that you can drag n drop into the layout canvas. You add them to the Views/Elements folder of your theme and they have to end with Snippet.cshtml. With this Snippet you can make a Page accessible only for authenticated users.

You have to add AuthenticatedUserSnippet.cshtml and AuthenticatedUserSnippet.txt files to your Views/Elements folder of your theme. After this you can drag the AuthenticatedUser snippet wherever you want and if the user is not logged ln will be redirected to a custom url or to login page.

Read more here