Skip to content

Does not work with Decap CMS 3.x.x #655

@pranaysahith

Description

@pranaysahith

Describe the bug
Does not work with Decap CMS 3.0.0
To Reproduce
see config.yml and index.html below
Expected behavior
Parent field loads

Applicable Versions:

  • Decap CMS version: decap-cms@3.8.3
  • Git provider: azure
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

CMS configuration

backend: name: azure publish_mode: simple show_preview_links: false media_folder: docs-site/static/.attachments/ public_folder: docs-site/static/.attachments collections: - name: docs label: docs folder: docs-site create: true extension: md editor: visualEditing: true summary: "{{dirname}}/{{filename}}.{{extension}}" fields: - name: path meta: true required: true label: Parent widget: parent index_file: index - label: Title name: title widget: string required: false - label: Body name: body widget: markdown required: false - label: Tags name: tags widget: list required: false nested: depth: 10 subfolders: false summary: "{{slug}}" meta: path: label: Parent widget: parent index_file: index publish: true type: folder_based_collection sortable_fields: - commit_date - title - commit_author view_filters: [] view_groups: [] slug: encoding: unicode clean_accents: false sanitize_replacement: "-" isFetching: false error: null 

Additional context

<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script> <script src="https://unpkg.com/@netlify/netlify-cms-widget-parent@^1.0.12/dist/netlify-cms-widget-parent.js"></script> <script> const parentWidget = window.NetlifyCmsWidgetParent; CMS.registerWidget('parent', parentWidget.control, parentWidget.preview); </script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions