Add need to create meta.json
authorEileen McNaughton <eileen@mcnaughty.com>
Wed, 2 Jan 2019 23:08:13 +0000 (12:08 +1300)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:17 +0000 (19:13 -0700)
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

index 7d754c09e7b6843471187c890cc75b7be8be0859..5109f90b7e4996a3e9b9a6c45454ce87274120e0 100644 (file)
@@ -49,6 +49,10 @@ Next, we should create an overall `afform/contact/layout.html` which uses these
 </div>
 ```
 
+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` --