Closed wilr closed 7 months ago
There's something odd happening with the behat tests... can you please rebase your PR to see if that resolves it?
Rebased now.
This PR doesn't seem to fix it - I still can't see the ShowInSearch field when editing a file in the asset admin:
Can you please advise if there's some additional steps I need to take, or if I'm looking in the wrong place, etc?
@GuySartorelli should be under 'Permissions'
Oh, interesting. Was it under "permissions" in CMS 3? That doesn't seem like an intuitive place for it, but if that's where it was in CMS 3 then I'd be okay with it.
Please add an exception for Folder - there is a comment in the $db definition that says it shouldn't be inherited for folder, so we shouldn't show the field for folders.
@GuySartorelli Done added a check to exclude folder.
Awesome, thanks for making that change. Can you please also answer the question from my previous comment?
Was it under "permissions" in CMS 3? That doesn't seem like an intuitive place for it, but if that's where it was in CMS 3 then I'd be okay with it.
Can you please resolve the behat failures, and also respond to my question in the previous comments?
Can you please resolve the behat failures, and also respond to my question in the previous comments?
Not sure about 3 but I think it's fine under Permissions as it relates to some form of Permission (is it permitted to be in search).
Permissions is more about user permissions than what the record is "permitted" to do. I wouldn't like to make a precedent that this sort of thing is a "permission".
If this is where it was for CMS 3 then I'm fine with it. If it wasn't there in CMS 3 or we can't verify one way or another, please move it out of permissions.
This pull request hasn't had any activity for a while. If you're still interested in having this merged, can you please either move it out of permissions or else validate where it was in CMS 3? If there's no more action after a few weeks I will close the PR, and you can reopen it when you're ready to work on it again.
Hi @GuySartorelli happy to move it out to main. In this 3 build there were no tabs. Everything is under 'Main'.
Sounds good - when that change is made, I'll be happy to re-review and merge.
@GuySartorelli done.
Upgrading from SilverStripe 3 to SilverStripe 5 it appears the ShowInSearch field is no longer displayed in the UI.
The File record still contains this data and the implementation was to match Page instances which contain the 'Show in search' option to CMS editors.
Issue