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

Multi-site: Parent does not exist in structure error #2176

Closed
mikemartin opened this issue Aug 5, 2020 · 8 comments
Closed

Multi-site: Parent does not exist in structure error #2176

mikemartin opened this issue Aug 5, 2020 · 8 comments

Comments

@mikemartin
Copy link

Bug Description

The parent field seems to interfere with localising a page. Is this the expected flow or is there a better way to handle this error.

2020-08-05 10 43 24

How to Reproduce

Extra Detail

Environment

Statamic version: 3.0.0.-beta-{?}

PHP version: 7.{?}

Install method (choose one):

  • Fresh install from statamic/statamic
  • Starter kit
  • Existing Laravel app
  • Other (please explain this magic!)
@vanhooff
Copy link

vanhooff commented Aug 5, 2020

Same as issue #2172

@vanhooff
Copy link

vanhooff commented Aug 5, 2020

@mikemartin How did you make the parent writable in localized entry? i've tried

-
        handle: parent
        field:
          type: select
          localizable: true

But then I'm losing the right sidebar (default) functionality.

Thanks!

@mikemartin
Copy link
Author

Hey @sandervanh!

This was a fresh install and all I needed to do was add localizable to the parent field. It looks like I'm using the entries field instead of the select. Here's the fieldset:

title: Pages
sections:
  main:
    display: Main
    fields:
      -
        handle: title
        field:
          type: text
          required: true
          localizable: true
      -
        handle: content
        field:
          type: markdown
          display: Content
          localizable: true
      -
        handle: author
        field:
          type: users
          display: Author
          default: current
          localizable: true
          max_items: 1
      -
        handle: template
        field:
          type: template
          display: Template
          localizable: true
  sidebar:
    display: Sidebar
    fields:
      -
        handle: slug
        field:
          type: slug
          required: true
          localizable: true
      -
        handle: parent
        field:
          type: entries
          collections:
            - pages
          max_items: 1
          listable: false
          localizable: true
  SEO:
    display: SEO
    fields:
      -
        handle: seo
        field:
          type: seo_pro
          listable: false

@vanhooff
Copy link

vanhooff commented Aug 7, 2020

Thanks @mikemartin !

@andjsch
Copy link
Contributor

andjsch commented Aug 13, 2020

There's another issue related to that one. Every time the page is updated, it's out of sync. Title, slug and parent are the same as root again.

@Pixney-William
Copy link
Contributor

Have you got any help with this one @mikemartin

@mikemartin
Copy link
Author

Haven't heard anything @Pixney-William

@jasonvarga
Copy link
Member

Looks like this might have been solved by 2059206 which will be in 3.0.2

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

No branches or pull requests

6 participants