The Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields, Custom Widgets, and Dashboard Widgets.
The "@contentstack/ui-extensions-sdk" is a powerful npm package designed to enhance the flexibility and functionality of Contentstack, a leading headless CMS platform. By leveraging this SDK, developers can create custom fields, widgets, and dashboard widgets, tailoring the administrative interface to meet specific business needs. This customization capability makes the Contentstack environment much more adaptable, enabling businesses to implement unique solutions that can drive efficiency and user engagement. The SDK provides a set of APIs that interact seamlessly with the Contentstack ecosystem, ensuring a smooth integration process and a robust development experience.
For developers looking to extend Contentstack's capabilities, the command npm install @contentstack/ui-extensions-sdk is the first step. Installing this package allows developers to tap into a rich set of features that enhance the Contentstack user interface. Once installed, developers can build custom solutions that can interact efficiently with Contentstack’s backend, providing users with a more personalized and efficient platform experience. The installation process is straightforward, ensuring that developers can quickly set up and start developing custom extensions without hassle.
The "@contentstack/ui-extensions-sdk" not only simplifies the process of creating custom extensions but also ensures that these extensions are scalable and maintain the integrity of the overall platform. Developers can use the SDK to build extensions that are both powerful and secure, maintaining a high standard of performance and reliability. This makes the SDK an invaluable tool for businesses that require a high degree of customization in their content management systems. By using the "@contentstack/ui-extensions-sdk", businesses can leverage the power of Contentstack to its fullest potential, creating a more dynamic, efficient, and user-friendly content management environment.
Contentstack provides the Live Preview SDK to establish a communication channel between the various...
Read moreThe Content Management API is used to manage the content of your Contentstack...
Read moreThis Package converts Html Document to Json and vice-versa...
Read moreGatsby source plugin for building websites using Contentstack as a data...
Read moreThe Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields,...
Read moreGatsby source plugin for building websites using Contentstack as a data...
Read moreThe Contentstack App SDK allows you to customize your Contentstack applications...
Read moreCore dependencies of this npm package and its dev dependencies.
post-robot, wolfy87-eventemitter, @babel/cli, babel-eslint, babel-loader, babel-preset-env, braces, css-loader, docdash, eslint, eslint-config-airbnb, eslint-loader, eslint-plugin-import, inject-loader, istanbul, istanbul-instrumenter-loader, jasmine, jasmine-core, jsdoc, jsdoc-to-markdown, jsonfile, karma, karma-chrome-launcher, karma-coverage, karma-coverage-istanbul-reporter, karma-eslint, karma-firefox-launcher, karma-jasmine, karma-jasmine-html-reporter, karma-safari-applescript-launcher, karma-sourcemap-loader, karma-spec-reporter, karma-summary-reporter, karma-webpack, mini-css-extract-plugin, nyc, ssri, webpack, webpack-cli, webpack-dev-server, webpack-shell-plugin-next
A README file for the @contentstack/ui-extensions-sdk code repository. View Code
The Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields, Custom Widgets, and Dashboard Widgets.
Custom Fields enable users to introduce simpler interface controls, such as color picker, code editor, video selector, and more, or maybe complex micro web applications such as Shopify or Snipkart. Because of their dissociated nature, custom fields can be reused multiple times.
Custom Widgets are like micro content-processing apps that help you analyze the entry content and provide recommendations. Some of the useful widgets you can create using this type of extension are text intelligence, SEO recommendations, language translation, grammar checker and more.
Dashboard Widgets let you add powerful widgets to the stack’s dashboard that let users do more from a centralized location. Some examples of this type of extension include personal notes, recently published content, notification centre, and stack usage summary.
This SDK overview document introduces you to the concept of custom extensions.
Include the compiled version of the extension client library by adding the following line to your application.
<script
src="https://unpkg.com/@contentstack/ui-extensions-sdk@2.2.3/dist/ui-extension-sdk.js"
integrity="sha512-LMktiFAj7j/AUFctMlgY8qmLrLIQVctwwCsnCXIWnvgF9JlanilvFbZxOCtPNB5eO3vp2Nhw9ED1UsWa+ltSvQ=="
crossorigin="anonymous"
></script>
Some of the examples of custom field extensions are:
Color Picker - Displays a native color picker polyfill that allows users to select color as input value and saves the color code in the backend
Ace Editor - Displays a code editor written in JavaScript, allowing you to edit HTML, PHP, JavaScript and more easily
JSON Editor - Displays a simple editor that lets you view, edit and format JSON code within the field of your content type
Key-value Field - Lets you add key-value as input value of a field of your content type
Progress Bar - Allows users to set value of a field by sliding the progress bar to the left or right
Star Ratings - Lets you provide rating by choosing number of stars
Brightcove - Lets you fetch and display your Brightcove videos into a field of your content type.
Shopify - Lets you load products of your Shopify store into the field of your content type.
Egnyte - Allows you to fetch files of your Egnyte account and display them into a field of your content type.
Ooyala - Lets you fetch and display your Ooyala videos into a field of your content type.
Optimizely - Lets you serve personalized content by allowing you to select the audience for each entry.
Youtube - Lets you fetch and display your Youtube videos into a field of your content type.
External API Lookup - Lets you fetch data from an external API and display the data as possible values for the field on an entry page in Contentstack.
Some of the examples of custom widget extensions are:
Text Intelligence - Lets you use MonekyLearn APIs to provide helpful recommendations such as content summarizer, keyword extractor, retail classifier, etc.
Google Analytics - Displays the traffic analysis and statistics of your entry (using Google Analytics data) on the sidebar of the entry.
Optimizely Experiments - Lets you retrieve and display Optimizely Experiments and their details in your entry.
Developer Tools - This widget extension provides developers with quick tools (API endpoint, JSON, etc.) to work with an entry or all entries of a content type and do a lot more.
Some of the examples of the dashboard widget extensions are:
Google Analytics - Displays the traffic analysis and statistics of your site on the stack dashboard.
Content Type Visualizer - Content Type Visualizer Dashboard Widget offers a graphical representation of all content types, along with their fields, in a particular stack.
Extensions are rendered within an iframe, you will need to include the ui-extension-sdk.min.css library within your custom extension in order to use any of the styles provided by Contentstack.
Include the CSS file in your extension code as follows:
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@contentstack/ui-extensions-sdk/dist/ui-extension-sdk.css"
integrity="sha512-yPPI/jWiqPr0HIh+1A2QPP5p58sSYqbPoBykxIuBckT1vzGwNbrOmwYM03qGI4ffnxd7q4kkoDys0kdZzxYn9A=="
crossorigin="anonymous"
/>
For more information on styling your extension, refer to our style guide.
Licensed under MIT.