This plugin allows you to open the Aprimo DAM asset selector from your studio and save those chosen assets and renditions in your Sanity documents. Because CORS isn't possible with Aprimo, we have removed the ability to use assets that are not public renditions. We may restore this functionality in the future, once CORS requests are allowed or we have sufficient guidance on using a proxy server.
- In your studio directory, run
sanity install aprimo
. - Declare a field to be
aprimo.cdnasset
in your schema. For example:
{
type: "aprimo.cdnasset",
name: "image",
description: "This asset is served from Aprimo",
}
- Navigate to that directory in your studio. There will be a plugin icon to the top left of that field, that will allow you to add the credentials for your Aprimo tenant. Enter in these details (they will be safely stored in your Sanity dataset as a private document. Remember to include these credentials across all your datasets!) If any of these fields are confusing, contact your Aprimo administrator.
After the above, you should be able to use the selector on any field declared as aprimo.asset
or aprimo.cdnasset
. By including the aprimo.asset
type in an array, you can use the multiple selector in Sanity as well.