Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Cannot add multiple schemas for one shortcut #29

@eolszewski

Description

@eolszewski

Hello!

I have an extension for books where each books contains multiple chapters. I'd like to be able to update these chapters in the builder, so I have the following in extensions.json.

"adminPages": [
        {
          "page": "shoutem.cms.CmsPage",
          "title": "Chapters",
          "parameters": {
            "schema": "@.Chapters"
          }
        },
        {
          "page": "shoutem.cms.CmsPage",
          "title": "Books",
          "parameters": {
            "schema": "@.Books"
          }
        },
        {
          "page": "shoutem.layouts.LayoutPage",
          "title": "Layout"
        }
      ]

The problem with this is that the schema for whichever of these is listed first is the one which appears for both of them. If I list chapters first and try to create a book in the builder, the UI will show the schema for creating a chapter. If I list books first and try to create a chapter in the builder, the UI will show the schema for creating a book.

I assume this is a bug and would greatly appreciate having it looked at!

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