I need to develop a plugin where the user can modify his pictures (assets) on the fly. I've already done that in another PHP project and am willing to port it on craft, but I cant find any way on how to access assets, and what's the best way of doing it.

  • First, I want my plugin to act on asset sources, like you enable it or not.
  • Then, I want to add a button in the small window that opens up when you double click an asset (in an entry for example), how can one achieve this ?

Thanks a lot !

Edit Usecase : I have an image gallery, where albums are a structure, and you can add images in any of them. New albums can be added by other users. When they double click a picture in the entry editor, I'd like to display a button that says something like "edit" (under the default options). I tried using a new field type but it's not the good and legit solution I guess.

When the button is clicked, they are brought to a new page (still in CP) where they can edit their picture (I did the editor in javascript), then save it.

  • 1
    This question is very imprecise (and probably too broad, as well). Can you be more specific? What do you mean by "modify assets on the fly" and "act on asset sources"? Sep 25, 2015 at 20:38
  • Possibly a duplicate of this question... If you have something more specific to address, which isn't covered by that other thread, then please edit your question to hone in on a specific issue.
    – Lindsey D
    Sep 25, 2015 at 22:30
  • hey thanks for your help ! I edited my question
    – ovesco
    Sep 26, 2015 at 6:30


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy