Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Page blueprint save admin

Started by Muut Archive 10 years ago · 3 replies · 490 views
10 years ago

when I edit page based on custom blueprint, save afterwards and trying to "get out" of the page, the "unsaved changes" dialog window still appears ... any advice? page is saved correctly, but i need to get rid of the dialog

10 years ago

I have the same problem on some instance. I will look more into it too.

10 years ago

Check to make sure your browser is not auto-completing a field (yellow background in chrome). This will trigger that unsaved changes notification.

10 years ago

Yeah, maybe that's it, i am not sure, but I gonna give that admin section to other people and thats ,quite problematic, explaining them the problem { which in fact, is no problem at all =D } . Otherwise, couldnt it be in using multiple pagemediaselect fields on this blueprint? Ive made simple gallery 7imgs per page with captions. Other pages are ok ..so maybe theres some prob in my blueprint
the last column serves as the uploader field


whatevere:
type: tab
title: Galerie
fields:
columns:
type: columns
fields:
column1:
type: column
fields:
header.fig1:
type: pagemediaselect
label: Fig 1
folder: 'self@/gallery/'
preview_images: true

YAML
                header.fig1_popisek:
                  type: text 
                  label: Popisek k Fig 1

            column2:
              type: column

        columns2:
          type: columns
          fields:
            column3:
              type: column
              fields:
                header.fig2:
                  type: pagemediaselect
                  label: Fig 2
                  folder: 'self@/gallery/'
                  preview_images: true

                header.fig2_popisek:
                  type: text
                  label: Popisek k Fig 2

            column4:
              type: column
              fields:
                header.fig3:
                  type: pagemediaselect
                  label: Fig 3
                  folder: 'self@/gallery/'
                  preview_images: true
                header.fig3_popisek:
                  type: text
                  label: Popisek k Fig 3

        columns3:
          type: columns
          fields:
            column1:
              type: column
              fields:
                header.fig4:
                  type: pagemediaselect
                  label: Fig 4
                  folder: 'self@/gallery/'
                  preview_images: true

                header.fig4_popisek:
                  type: text
                  label: Popisek k Fig 4

            column2:
              type: column

        columns4:
          type: columns
          fields:
            column3:
              type: column
              fields:
                header.fig5:
                  type: pagemediaselect
                  label: Fig 5
                  folder: 'self@/gallery/'
                  preview_images: true
                header.fig5_popisek:
                  type: text
                  label: Popisek k Fig 5

            column4:
              type: column
              fields:
                header.fig6:
                  type: pagemediaselect
                  label: Fig 6
                  folder: 'self@/gallery/'
                  preview_images: true
                header.fig6_popisek:
                  type: text
                  label: Popisek k Fig 6

        columns5:
          type: columns
          fields:
            column1:
              type: column
              fields:
                header.fig7:
                  type: pagemediaselect
                  label: Fig 7
                  folder: 'self@/gallery/'
                  preview_images: true

                header.fig7_popisek:
                  type: text
                  label: Popisek k Fig 7

        columns6:
          type: columns
          fields:
            column1:
              type: column
              fields:
                fileuploaded:
                  type: file
                  destination: 'self@/gallery/'
                  multiple: true

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2956 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago