Giter VIP home page Giter VIP logo

sanity-plugin-aprimo's Introduction

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 sanity install 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

sanity-plugin-aprimo's People

Contributors

cngonzalez avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.