grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

The media_order in *.fr.md file does not match Admin dropzone contents

Open thekenshow opened this issue 2 years ago • 2 comments

I'm working on localizing a site, adding *.fr.md files and renaming/adding images as *.fr.jpg and *.en.jpg, and have run into a strange behaviour:

  • When viewing a modular.fr.md page in the Admin with Francais selected, the dropzone shows the newly renamed and added images.
  • When viewing the modular.fr.md file in Sublime Text, the media_order still shows the older (pre-renaming) files. The Expert mode is Admin agrees with Sublime Text.

Screenshot with banner.jpg in Expert view but banner.en.jpg in dropzone

Screen Shot 2023-01-12 at 8 43 46 AM

Editing & saving the page content in Admin or Sublime Text is reflected in both. This same issue is reproducible with a non-modular *.fr.md page.

Possibly Related

I'm on a Mac and the .fr.md in question is user/pages/07.service/01.national-accounts/modular.fr.md. The macOS Finder shows any .service file (like the 07.service in this path) as a program (app bundle) instead of a folder. So I have to use Show Package Contents in the Finder to navigate into it.

I can navigate to it just fine in the Terminal, but I wonder if that's somehow throwing the Admin file reading off? What really makes no sense is that the media_order is wrong and the dropzone is right. I'd expected the opposite.

thekenshow avatar Jan 12 '23 15:01 thekenshow

Can you please provide a zip file of the page in question? Also please provide your system.yaml configuration file.

rhukster avatar Jan 12 '23 15:01 rhukster

Here they are (this is a non-modular that exhibits the same behaviour):

02.sprinkler-system-service.zip

system.yaml.zip

thekenshow avatar Jan 12 '23 15:01 thekenshow