FlexForm/JSON

From CODECS Dev
  • Tested with FlexForm version 2.2.14, REL1_39.
  • Our target page using JSON is FlexForm/JSON/Target1
    • Is it possible to force the page to use JSON content model?
  • To use JSON, we need to set the format to JSON, both in _edit and _instance.
  • JSON structure: node=Items
    • _edit:
      template="jsonk|Awards" formfield="Items"

I have been writing a bit of documentation for users who are new to this: https://flexform.wikibase.nl/Gebruiker:944f869b-8467-464e-95c7-903362952755/JSON


Limitations

  • It may not
  • It does not seem possible to create a page entirely in JSON.
    • It is only possible to create a page with a wiki template and some JSON in it. Not sure how that works with _edit.


JSON structure

{
  "": {
    "": ""
  }
}

Form


Issues

  • Error message in browser console: Uncaught SyntaxError: redeclaration of let ffDecryptObj