From 6a7e9d500cd9eb63c0d6e9f122179dc84e984ffc Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 3 Jan 2019 12:08:13 +1300 Subject: [PATCH] Add need to create meta.json Per the fix me the requires part of this might change later but for now this gives more help to devs using this --- ext/afform/docs/embed.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/afform/docs/embed.md b/ext/afform/docs/embed.md index 7d754c09e7..5109f90b7e 100644 --- a/ext/afform/docs/embed.md +++ b/ext/afform/docs/embed.md @@ -49,6 +49,10 @@ Next, we should create an overall `afform/contact/layout.html` which uses these ``` +And we should create a `afform/contact/meta.json` looking like +``` +{"server_route": "civicrm/contact", "requires" : ["afformContactName", "afformContactEmails", "afformContactAddresses"]} +``` > *(FIXME: In the parent form's `meta.json`, we need to manually add `afformContactName`, `afformContactAddresses`, `afformContactEmails` to the `requires` list. We should autodetect these instead.)* What does this buy us? It means that a downstream admin (using APIs/GUIs) can fork `afform/contactName/layout.html` -- -- 2.25.1