Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eolszewski opened this issue Apr 26, 2019 · 0 comments
Open

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

eolszewski opened this issue Apr 26, 2019 · 0 comments

Comments

@eolszewski
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant