FlexForm/JSON/Schema

From CODECS Dev

Scheme: Json/PersonDataSchemeExample


Proposed changes

Produce wiki source code

  • Add a way for the schema to render the raw wiki code so that it can be customised (templates, comments, other formatting, etc.).
    • Parser function. Maybe also through special page.
    • Add hook to FlexForm ?
  • Maybe add a special namespace eg FFSchema:[...] that contains another tab with the raw wikitext.

Currently trying things out with

{{#cs-flexform-schema:Json/PersonDataSchemeExample}}


Additional features

  • Make it possible for label and input to get an html wrapper. How?
  "label": "Title here{{#info:blablalbla}}",
  "labelComment": "Bla bla bla",
  "wrapperClass": "" // If this is used, automatically gets a wrapper div with the provided class. Can be empty. Does not make sense without a label.
  • What about accommodating template input. Appears to be fully based on getting content from slots through a parser functions.