-
Notifications
You must be signed in to change notification settings - Fork 199
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
Checkbox fields with view only permission render incorrectly #2003
Comments
That's not incorrect, but I'd also like to see renderMarkup() used instead of renderValue() in that case. The latter does correctly return 1, whereas the first one would render a disabled checkbox. |
That's true. Wonder if that's the case for the other fields that render incorrectly in On Mon, Aug 29, 2016 at 11:17 AM, Benjamin Milde [email protected]
/Hanna 070 - 742 19 69 |
Yep, it's the same thing. But renderMarkup() is the one rendering markup, whereas renderValue() does render a value, which is the string of id's for repeaters. |
There is no |
Alright looks like I already thought this one through before. :) In PW3 (added months ago) we are already using a renderValue() method for InputfieldCheckbox and it renders a text label along with a checked or unchecked font-awesome icon. If you are already using PW 2.8 or 3.x and don't see this, please let me know. Thanks. |
That feeling when you dig into a potential problem.. only to find out you've already solved it :) |
Seem to have the same problem whith files inputfield . PW version 3.0.98. |
@NikoTechnik, I would suggest opening a new issue at https://github.com/processwire/processwire-issues. This repository (ryancramerdesign/ProcessWire) is for legacy stuff, so the issue is unlikely to get any attention here :) |
Ok, thank you ! |
If you have a checkbox field with access set to "View" but not "Edit" for the current user, and you have "Show field in page editor if viewable but not editable", you get output like this:
1
It would be cleaner if the system could display a non-editable checkbox instead.
The text was updated successfully, but these errors were encountered: