Open edalzell opened 4 years ago
A workaround for now could be to create it as a fieldtype, and place it in the asset blueprint.
Yup, looking into that now.
@jasonvarga how can I reference another field from my fieldtype? I'll need to access the asset.
$this->field()->parent()
should be the Asset
in JS? I'll need it on the front end to init the cropping.
Pass along whatever you need from php to js by preloading meta data. https://statamic.dev/extending/fieldtypes#meta-data
I have a use case for this: control the private/public permission for a file on our CDN, on a file-by-file basis.
Got this from a potential client:
Would be super great if we could hook into the asset "panel".