6b24215190
Two root-cause bugs: 1. Wrong action name: 'add-page-by-form' is not handled by the plugin; the plugin only matches 'addpage' or 'add_page'. Using the wrong name meant the action silently no-oped while 'message' still fired, showing 'Entry posted successfully!' for a post that was never written. 2. Config in wrong place: parent/slug/template must be in 'pageconfig' and 'pagefrontmatter' frontmatter blocks on the form page — the plugin reads from page->header(), not from the process block params. Fix: move config to pageconfig/pagefrontmatter, change action to 'add_page'. Slug is built from date+title fields (e.g. 2026-06-18-1430-my-title). Photos destination changed to '@self' so the plugin copies from flash to the new entry folder correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
title, template, access, pageconfig, pagefrontmatter, form
| title | template | access | pageconfig | pagefrontmatter | form | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| New Entry | post-form |
|
|
|
|