Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content template to allow differential content for un-/authenticated users #578

Closed
JimKerslake opened this issue Sep 7, 2023 · 3 comments

Comments

@JimKerslake
Copy link
Collaborator

No description provided.

JimKerslake added a commit that referenced this issue Sep 8, 2023
JimKerslake added a commit that referenced this issue Sep 11, 2023
JimKerslake added a commit that referenced this issue Sep 11, 2023
JimKerslake added a commit that referenced this issue Sep 13, 2023
@JimKerslake
Copy link
Collaborator Author

JimKerslake commented Nov 15, 2023

This should now be delivered as an available content template when creating a new simplecontent page:

Role based content
Render different content depending on whether the user is authenticated, unauthenticated, or in a particular role

The template delivers 3 content editors:

  • content to be seen by unauthenticated users
  • content to be seen by authenticated users (replaces the above for an authenticated user)
  • content to be seen by users in any of the specified roles: a CSV listing of applicable roles should then be supplied.

By default, the third, Role based content will be displayed beneath the authenticated content, if the user is in one of the specified roles. However there is a checkbox that changes that behaviour such that the Role-specific content replaces the authenticated content fully.

@JimKerslake
Copy link
Collaborator Author

cloudscribe.SimpleContent.ContentTemplates.Bootstrap5 at v 6.0.4

@CrispinF
Copy link
Contributor

Documentation updated here https://www.cloudscribe.com/content-templates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants