kater Posted August 5, 2020 Share Posted August 5, 2020 Hi, I've access-controlled toggles (Superuser) that should control the visibility of Inputfields (repeater downloads) on the edit-page (modal) to editors. Is there a way to access the field value of those toggles (downloads_allow) for showif visibility? i only (rightly so) get the value if the toggle (downloads_allow) is editable by the editor. Is there a way to omit this just like the page selector "check_access=0". Maybe it's also possible to extend the "access fields via api even if hidden" option to such dependencies? thanks! Edit Page: - Tab Permissions - - Toggle "allow_downloads" (set by Superuser, access-controlled) - Tab Downloads - - Downloads Repeater (only visible to Editor if allowed) Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted August 5, 2020 Share Posted August 5, 2020 This should be possible to do with a hook. Look here for inspiration. Or just search for something like "hook admin inputfield show" (preferably, in Google) 1 Link to comment Share on other sites More sharing options...
kater Posted August 6, 2020 Author Share Posted August 6, 2020 Hi Ivan, Yes, you're right and I'm doing it like this now but I'm looking for a way to add/remove fields without having to adapt the ready.php. The available fields will change occasionally. Thanks! Added: If one chooses to not access-control the toggles, adrians great RestrictTabView module is an option. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now