-
Notifications
You must be signed in to change notification settings - Fork 63
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
Neo Permissions for Block Visibility #778
Comments
This isn't currently possible, but would be good to have, and would likely be added at the same time as #775. |
That would be awesome to have. Do you currently see a workaround to handle such a requirement? |
No workaround that I can think of, unfortunately. |
Found an "under-the-hood" approach to tackle this here: https://github.com/spicywebau/craft-neo/blob/main/docs/events.md#example-1 Checking for e specific field on the element and filter the neo blocks accordingly (if the field is present). Hope this helps anyone else facing similar issues. |
Reopening per #779 (comment) |
What question would you like to ask?
Dear Neo-Team
In a current project, we are facing the challenge that we should allow some Neo Blocks to be selected if a pre-condition is met using a specific field. For example:
We have a Lightswitch field “allowWidget”
We have a NeoField with a NeoBlock “widget”
In a specific entry type, we use both fields and “widget” should only be allowed to use is “allowWidget” is set to true
Unfortunately, I haven’t found a way to access “allowWidget” from the Advanced Conditions in the NeoBlock itself. Do you have any input (or maybe alternative way to go for that) for me?
Thanks in advance and best regards,
Daniel
The text was updated successfully, but these errors were encountered: