Skip to content

netlify-labs/netlify-cms-widget-parent

Folders and files

NameName
Last commit message
Last commit date
Jan 9, 2023
Jun 22, 2021
Apr 29, 2021
Sep 28, 2020
Sep 28, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jun 14, 2021
Dec 20, 2020
Jul 8, 2020
Jul 8, 2020
Jul 14, 2020
Jul 8, 2020
Jan 29, 2024
Jul 8, 2020
Feb 8, 2021
Mar 17, 2025

Repository files navigation

Netlify CMS Widget Parent

A Netlify CMS widget to select directory parent for an entry

Usage

Example for using in an HTML file

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Content Manager</title>
  </head>
  <body>
    <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
    <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
    <script src="https://unpkg.com/@netlify/netlify-cms-widget-parent@^1.0.0/dist/netlify-cms-widget-parent.js"></script>
    <script>
      const parentWidget = window.NetlifyCmsWidgetParent;
      CMS.registerWidget('parent', parentWidget.control, parentWidget.preview);
    </script>
  </body>
</html>