Giter VIP home page Giter VIP logo

kontent-custom-element-type-selector's Introduction

Kentico Kontent type selector custom element

This custom element for Kentico Kontent gives editors a way to select content types from current project.

content types custom element demo

Features

  • Display optional debug panel for diagnostics

Quick testing

If you're interested in trying this out without deploying it yourself, you can use kontent-custom-element-type-selector.netlify.app This is the deployed version of the master branch in this repo. This should only be used for quick testing as it is subject to change

Deploying

Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your account as well.

Deploy to Netlify

Configuring the Custom Element

You will need to add the custom element to a content type filling in the hosted code URL and the JSON parameters (see below for details).

The JSON parameters required as as follows:

Name Type Description
debug boolean (Optional) If present and set to true the debug panel will activate when editing a content item.

Sample parameters JSON:

{
  "debug": true
}

โš ๏ธ If the content type is changed, this custom element does not reflect this update in stored value. It could be extended that for every first load it updates all selected values, because the id stays the same.

Sample Value

[
  {
    "id": "94803853-7af8-4b63-a218-5f440c0d692c",
    "name": "Journal",
    "codename": "journal",
    "last_modified": "2020-07-17T08:39:50.4370746Z"
  }
]

Developing

Initial project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Example scenarios

Allow users to select what types you want in your listing on the website.

content types custom element showcase

Customize Vue CLI configuration

See Vue CLI Configuration Reference.

kontent-custom-element-type-selector's People

Contributors

simply007 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

kontent-custom-element-type-selector's Issues

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.