-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
SearchKit - Image field handler (Fixes dev/core#2781) #21225
Conversation
(Standard links)
|
Rolando needs to work on his professionalism. |
It seems to me that requiring a value for "path" makes the UX more complicated; in most cases I think it would be the same as the field value. In the case of custom field image uploads, I think it will be too complicated to calculate that value to expect the user to do it with tokens, so we ought to do it for them. In both of these cases I don't think we should expose the value to the user. But one really good/important thing to allow admins to configure would be width and height. I'm thinking 2 number fields with placeholder text "Auto". |
I do agree that it's complicated for users to construct urls especially for custom fields. I have not handled that scenario as it involves file checksum etc and I am afraid won't get chance to check on it right now. I have added placeholder in the code for the same. In our use case we construct path for the image. Images are handled using separate extension hence it can't be auto calculated. My suggestion would be to construct the path so users don't have to change it but keep it in the UI for the use cases where path can be altered such as ours.
This make sense. I have added this now. |
test this please |
@kurund I've reviewed this. It works well except I found 3 problems:
I've fixed all the above in #21300 |
thank you |
Overview
https://lab.civicrm.org/dev/core/-/issues/2781