Skip to content
New issue

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

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

Already on GitHub? # to your account

Combine global blueprints into a single tabbed "Settings" blueprint #12

Closed
pryley opened this issue Aug 7, 2020 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@pryley
Copy link
Contributor

pryley commented Aug 7, 2020

Hope you don't mind me putting this here instead of making a pull request, still pushing through this deadline.

image

image

image

sections:
  general:
    display: General
    fields:
      -
        handle: address
        field:
          type: textarea
          localizable: false
          listable: hidden
          display: Address
      -
        handle: business_hours
        field:
          input_type: text
          type: text
          localizable: false
          listable: hidden
          display: 'Business Hours'
      -
        handle: contact_sections
        field:
          sets:
            section:
              display: 'Contact Section'
              fields:
                -
                  import: contact_section
          type: replicator
          localizable: false
          listable: hidden
          display: 'Contact Sections'
  social_media:
    display: 'Social Media'
    fields:
      -
        handle: social_media
        field:
          sets:
            facebook:
              display: Facebook
              fields:
                -
                  import: social_media
            instagram:
              display: Instagram
              fields:
                -
                  import: social_media
            linkedin:
              display: LinkedIn
              fields:
                -
                  import: social_media
            twitter:
              display: Twitter
              fields:
                -
                  import: social_media
            vimeo:
              display: Vimeo
              fields:
                -
                  import: social_media
            youtube:
              display: YouTube
              fields:
                -
                  import: social_media
          type: replicator
          localizable: false
          listable: hidden
          display: 'Social Media'
  error_messages:
    display: 'Error Messages'
    fields:
      -
        handle: error_messages
        field:
          sets:
            error_301:
              display: 'Error 301'
              fields:
                -
                  import: error_message
            error_404:
              display: 'Error 404'
              fields:
                -
                  import: error_message
          type: replicator
          localizable: false
          listable: hidden
          display: 'Error Messages'

@robdekort robdekort self-assigned this Aug 8, 2020
@robdekort robdekort added the enhancement New feature or request label Aug 8, 2020
@robdekort
Copy link
Contributor

Nice, I'll gladly implement the tabs, but I think I'll stop using replicators in globals. It doesn't really make sense to me anymore since you can then add multiple 404 errors or twitter accounts.

@robdekort
Copy link
Contributor

Although for social media it does make sense to loop over them...

robdekort added a commit that referenced this issue Dec 14, 2022
[Breaking] Rename your global template fields to the new corresponding field handle.

closes #12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants