d17d1256ba8f6856c145cde915fa9f6b06baefda
Styling: repaint FilePond's default light drop zone/thumbnails/actions with the Field Notes dark tokens so the picker matches the site palette. Reordering: enable FilePond drag-reorder (allowReorder, itemInsertLocation 'after'). FilePond does NOT re-sequence its submitted data[photos][] inputs on reorder, so post-form.js sends the visual order as a top-level `photo_order` POST key on submit. cache-on-save reads it from $_POST (after add-page-by-form copies the files, priority -100) and renames them photo-1..N in that order — which the entry honours since it lists media by filename and treats the first as hero. The order key is top-level (not data[...]), so it never lands in the entry frontmatter. Best-effort + self-idempotent: locates the new entry folder by the uploaded filenames and no-ops if they're already renamed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
No description provided
370 MiB
Languages
JavaScript
80.5%
CSS
12.2%
SCSS
3.2%
Twig
2.6%
PHP
1.5%