-
Notifications
You must be signed in to change notification settings - Fork 2
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
FieldtypePage: Selectability of unpublished pages depends on chosen input field class #2
Comments
I tried to reproduce your issue with the latest ProcessWire version (3.0.34) from the new repository, and I had to stop at step #5, because the unpublished page appears in the page field: Please specify your exact ProcessWire version ("recent devns clone" isn’t very specific). Can you try it also with the newest ProcessWire version and confirm my observation? If you can, please upgrade to the latest ProcessWire version. In the meantime, I will label this issue "not reproducible". |
I can reproduce this issue's step 5 w/ PW 3.0.34 from the new repo while I cannot confirm your observation. I believe that the code building the selector which excludes unpublished pages from the I think that this code path is executed when the Page field is configured to not Would you mind re-checking whether your PW instance uses the Page field with these two settings in effect? |
Sorry, I didn’t fully comprehend the issue you were having. You are right, I can reproduce the issue. The end result is correct (after saving the page the selected page, which shouldn’t be selectable, isn’t persisted), but I agree that from a user perspective it is a bit confusing that it is still possible to select the page in the first place. |
This feature was added awhile back at Teppo's request (if I recall), and it's something that FieldtypePage supports, but not all page selection Inputfield types. I may be able to have the autocomplete one just omit unpublished pages for this case, but if not then certainly a strikethrough on the label (or something like that) would be worthwhile. We can't omit unpublished from the page tree just because a parent may be unpublished while the children might not be. Because support really depends on the Inputfield type (whether or 3rd party), I'll solve this issue by having it issue a save warning that unpublished pages aren't allowed to be stored in the selection. I'm also thinking in some cases we may be able to automatically append "(unpublished)" label to the selected label for additional clarity. |
… of unpublished pages in certain Page input types when unpublished pages are not allowed in the field.
I've pushed a fix for this issue. For PageListSelect types it provides a warning when the page is saved. For Autocomplete, I was able to have it suppress showing of unpublished pages. |
… of unpublished pages in certain Page input types when unpublished pages are not allowed in the field.
Steps to reproduce with a recent devns clone:
I think this confuses users as the unpublished pages, while selectable, are not persisted when 'Allow unpublished pages?' is unchecked.
(This issue is a resurface attempt for ryancramerdesign/ProcessWire#1973, as suggested in #1)
The text was updated successfully, but these errors were encountered: