F
Filament9mo ago
Oddman

Curator picker - how to remove an added image?

I can't figure this out. After I've selected an image with the curator picker, and save the resource, there doesn't appear to be any way to remove said image again? I've clearly missed something super obvious, but I don't know what. Here's the code that sets up the picker for my categories:
CuratorPicker::make('hero_image_id')
->label('Hero image')
->relationship('heroImage', 'id')
->imageCropAspectRatio('16:9')
->imageResizeTargetWidth(1190)
->imageResizeTargetHeight(600)
CuratorPicker::make('hero_image_id')
->label('Hero image')
->relationship('heroImage', 'id')
->imageCropAspectRatio('16:9')
->imageResizeTargetWidth(1190)
->imageResizeTargetHeight(600)
Help?
Solution:
For those curious for future searches - make sure your theme is configured in your panel provider 🙂
Jump to solution
21 Replies
awcodes
awcodes9mo ago
Where are you trying to remove it from? The record or the media item itself.? Can you give me a screen shot or video of what you are expecting / trying. There’s several ways to unattach / delete media.
Oddman
Oddman9mo ago
Here you go, @awcodes. I just want to clear the associated image.
Oddman
Oddman9mo ago
Hmmm, that video isn't playing. Anyway, what it showcases is there's no way to remove it.
awcodes
awcodes9mo ago
Weird. You’re missing the actions menu in the top right corner for some reason.
Oddman
Oddman9mo ago
Yeah I'm also missing buttons when I go to make curations, check this out. I dunno if it's the theme that's at fault (it's dark atm), but I do remember having this issue previously.
No description
awcodes
awcodes9mo ago
Here’s the app I use for testing/ dev. https://github.com/awcodes/curator-demo
GitHub
GitHub - awcodes/curator-demo
Contribute to awcodes/curator-demo development by creating an account on GitHub.
awcodes
awcodes9mo ago
Yea something is definitely off in your app.
Oddman
Oddman9mo ago
Any ideas? I've run through the various steps, the theme is all setup.etc.
awcodes
awcodes9mo ago
If the theme was setup correctly you wouldn’t be seeing those issues. Sorry, not trying to be a dick about it.
Oddman
Oddman9mo ago
This seems to be missing half the stuff advised in the docs. I don't see the theme file anywhere, where's the admin panel provider.etc? nono, all good. I appreciate the candid response 🙂
awcodes
awcodes9mo ago
Are you on v2 or v3? Let’s start there.
Oddman
Oddman9mo ago
I'm on 3, but I'm still on the test versions, I think it's been fully released now yeah?
awcodes
awcodes9mo ago
Yea. Like a month or so ago. 🙂
Oddman
Oddman9mo ago
Hmmm, docs still say to use the stable branch, which I'm using.
awcodes
awcodes9mo ago
Latest is 3.0.5 It’s not in beta anymore.
Oddman
Oddman9mo ago
Yeah which I’m on.
awcodes
awcodes9mo ago
Do you have a repo you can share with me. You can add me if it’s private then delete me later.
Oddman
Oddman9mo ago
Yeah, I can - as there's no IP in it just yet (currently migrating away from twill cms)
awcodes
awcodes9mo ago
But something is off in your app. As best as I can tell. I could be wrong though, but no one else has reported this issue. Feel free to pm the repo if you don’t want to share it here.
Oddman
Oddman9mo ago
Sent you an invite. Maybe my vite config is wrong 🤔 oh hang on, that's right! Quite a few people ran into issues with the theme configuration, I had to disable it, as did many others. lol I've re-enabled now and all seems fine... maybe was fixed in a minor edition update. Yup, that was it @awcodes
Solution
Oddman
Oddman9mo ago
For those curious for future searches - make sure your theme is configured in your panel provider 🙂