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

Mediapicker inside a list field : Unable to display child page when clicking on fa-plus #1369

Closed
paulmassen opened this issue Mar 8, 2018 · 6 comments
Assignees
Labels

Comments

@paulmassen
Copy link
Contributor

Hi,

This is a problem with latest Grav + Admin.

When opening the mediapicker, it is not possible to click on the fa-plus in order to display child pages.
image

It also looks like mediapicker is having trouble fetching medias on subpages.

Thanks!

@OleVik
Copy link
Contributor

OleVik commented Mar 8, 2018

Are there any errors thrown in console?

@paulmassen
Copy link
Contributor Author

nope, no error in console

@rhukster
Copy link
Member

rhukster commented Mar 9, 2018

edit_user_story_submission___outdoorfloor

I don't think you are running the latest Admin 1.7, works fine for me.

@paulmassen
Copy link
Contributor Author

Oh, this is not related to Grav version actually.

The problem occurs when the mediapicker is in a list field.
I will rename the issue
Here is an example blueprint:

title: Artiste
'@extends':
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      fields:
        content:
          fields:
            header.press_review:
              type: list
              label: Ajouter un extrait de presse
              btnLabel: Ajouter extrait de presse
              controls: both
              fields:
                .name:
                  type: text
                  label: Nom du média
                .content:
                  type: textarea
                  label: Corps du texte de l'extrait
                .author:
                  type: text
                  label: Auteur
                .logomedia:
                  type: mediapicker
                  label: Choisir logo media
                  placeholder: Format carré de préférence

@paulmassen paulmassen changed the title Mediapicker with latest Grav : Unable to display child page when clicking on fa-plus Mediapicker inside a list field : Unable to display child page when clicking on fa-plus Mar 9, 2018
@rhukster
Copy link
Member

rhukster commented Mar 9, 2018

Seems this is not initialized fully in a list item.

@w00fz w00fz closed this as completed in df2a47a Mar 10, 2018
@w00fz
Copy link
Member

w00fz commented Mar 10, 2018

I think this has been fixed (tried to) different times. Hopefully this is it!

Please give it a try now.

Cheers.

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

No branches or pull requests

4 participants