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

Config option to hide the login button #395

Open
jonaspiterek opened this issue Jun 14, 2024 · 3 comments
Open

Config option to hide the login button #395

jonaspiterek opened this issue Jun 14, 2024 · 3 comments

Comments

@jonaspiterek
Copy link
Member

@sneridagh What do you think of an config option to hide the login button in the anontools?

<Link
aria-label="login"
to={`/login${
content?.['@id']
? `?return_url=${flattenToAppURL(content['@id'])}`
: ''
}`}
>

It is very common to not show this on a non-intranet site because the login is only for editors. So instead of customizing it, why not have a config option (e.g. config.settings.showLogin)?

@sneridagh
Copy link
Member

In fact, login can also be a portal action. Now thst you mastered them ;)

@jonaspiterek
Copy link
Member Author

Yes, but the link is hard-coded.

@davisagli
Copy link
Member

@jonaspiterek I think @sneridagh is saying that the template can check @components.actions in the content data to see if the login action should be shown, rather than a setting from the Volto config.

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

3 participants