elabx Posted July 27, 2019 Share Posted July 27, 2019 As the title implies, does anyone know if there is an existing module to "select" an image from a multiple images field? Link to comment Share on other sites More sharing options...
dragan Posted July 27, 2019 Share Posted July 27, 2019 Something like this? 1 Link to comment Share on other sites More sharing options...
elabx Posted July 27, 2019 Author Share Posted July 27, 2019 Awesome! Thanks @dragan! Great start! Though I am thinking of something a lot less complex. I think I might just build it myself because I'd rather build upon the existing image field markup so I can upload right then and there. Plan is: Add a "select icon" to the image thumb. Save the selection through AJAX in page. Maybe with the brand new meta API. Probably this is a very personal requirement, but I plan to open this page in a pw-modal window, select the image and send back the image url in the event message. Do you think this is possible? Link to comment Share on other sites More sharing options...
dragan Posted July 28, 2019 Share Posted July 28, 2019 14 hours ago, elabx said: I plan to open this page in a pw-modal window, select the image and send back the image url in the event message. Do you think this is possible? Sure, why not? Perhaps you don't even need a module for this. Just some custom HTML with an anchor .pw-modal which opens your page. With one of the three "runtime markup" modules that would be easy to do, I guess: https://processwire.com/talk/topic/21982-rockmarkup-inputfield-to-easily-include-any-phphtmljscss-in-the-pw-admin/ (this is the latest one of this kind, afaik). Is your general goal to have something like a central image library for often-used assets? 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