Joint session with Vercel: How to build intelligent storefronts (May 15th)

Aprimo Asset Selector

Official(made by Sanity team)

Select Aprimo assets in your Sanity studio!

By Carolina Gonzalez

Install command

npm i sanity-plugin-aprimo

v2 install command (deprecated)

yarn add sanity-plugin-aprimo@0.4.2

Aprimo asset selector for Sanity

aprimo gif

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.

Installation

  1. In your studio directory, run npm install sanity-plugin-aprimo.
  2. Declare a field to be aprimo.cdnasset in your schema. For example:
    {
      type: "aprimo.cdnasset",
      name: "image",
      description: "This asset is served from Aprimo",
    }
  1. 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.
aprimo credentials

Usage

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.

aprimo array

Related contributions