GithubHelp home page GithubHelp logo

applythoughts / kontent-custom-element-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christopherjennings/kontent-custom-element-samples

0.0 0.0 0.0 58.4 MB

Examples of custom element extensions for Kentico Kontent

Home Page: https://kentico.github.io/kontent-custom-element-samples/gallery

License: MIT License

JavaScript 1.80% CSS 20.61% HTML 77.59%

kontent-custom-element-samples's Introduction

Examples of Custom Element Extensions for Kentico Kontent

Gallery Stack Overflow

Custom elements help you with extending the basic functionality of Kentico Kontent UI and thus improving the content editing experience. Custom element is essentially a small HTML application that exists in a sandboxed <iframe> and interacts with the Kentico Kontent app via the Custom Elements API.

Note that Custom elements are only supported in the latest versions of our SDKs.

View Gallery

⚠ Disclaimer

Any URLs provided in the repos should not be used in production. You should follow the steps provided in the custom element's repository to deploy it yourself for testing.

If a custom element is missing deploy instructions, or you're having trouble with them, please log an issue in the custom element's repository.

If you wish to use them in a production project, you should perform a code review and fork/deploy the source code on your own as the custom elements in this repository are subject to change without notice.

NOTE: Some of the custom elements may require further configuration such as custom API keys or be subject to CORS limitation. In those cases you will need to fork the source repository and adjust the configuration in your copy repository according to instructions in the element's README file.

How to create a custom element

You can find a detailed tutorial on how to create a Custom element in our documentation.

Styling your custom elements

By including Kentico Kontent default styles, you can make your Custom element look consistent with the rest of the UI.

The /shared folder in this GitHub repository contains:

We recommend you clone the files and host them locally yourself. The kentico-icons-v1.6.0.woff file needs to be hosted in the same directory as the CSS stylesheet to be properly linked.

Feedback & Contributing

You can contribute by implementing a Custom Element Extension of your choice or pick one from the ideas. Create an HTML web page, include the Custom Elements API in the code, describe what your element does in the Readme file, and send us a pull request.

Pull request

The pull request should include:

  • A screenshot file (animated or static)
  • An element information json file
    • Must be named using PascalCase (e.g. YourComponentName.json)
    • Must be added to the src/data/elements folder
    • Includes a brief description of the custom element functionality
    • Links to your repository
  • Your repository should include a README.md file containing
    • A description of the custom element functionality
    • A screenshot/gif showcasing the custom element
    • Step by step instructions how to add custom element to the Kentico Kontent UI
    • Configuration description example
    • Example of the output in the Delivery Response
    • If possible, a "Deploy to Netlify" button to make it easy to get started (e.g. Deploying section of SimpleMDE Markdown Editor)
  • We no longer accept code submitted to this repository. It is only intended to act as a guidepost or collection of references to other codebases

Sample element JSON

The element information JSON file named after your element's name in PascalCase (e.g. YourComonentName.json) must be placed in the /src/data/elements folder with the following format:

{
  "title": "Your Component Name",
  "description": "Short description of your element's purpose and functionality.",
  "thumbnailUrl": "../assets/YourComponentName.(gif|png|jpg)",
  "readmeUrl": "https://github.com/<YourGitHub>/<YourCustomElementRepoName>"
}

Ideas

We'd also appreciate if you submit your ideas for custom elements or vote for the existing ones.

Check out the Contributing page to see the best places to file issues, start discussions, and begin contributing.

Analytics

kontent-custom-element-samples's People

Contributors

bassetts avatar christopherjennings avatar emmanueltissera avatar enngage avatar hejtmii avatar hzik avatar jeroenfurst avatar juraju-kentico avatar maartenhvdh avatar makma avatar martinafarkasova avatar matus-usiak avatar milanlund avatar oravecjakub avatar petrpyszko avatar petrsvihlik avatar radekm3 avatar simply007 avatar yuriys-kentico avatar zbynekh 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.