Meta tabs and siteprofile.yaml

"Meta tabs" is a new feature where the RTD (and other 'Edit Documents') will add standard and custom file properties (contenttypes) to a panel next to the rich content. These properties are then managed together with the standard "Save and Publish" workflows (ie changes to eg. a header image won't go live before the whole file is published).

YAML siteprofiles are a reformulation of siteprofiles as YAML with a focus on reducing redundant syntax (DRY - Don't Repeat Yourself) and reducing the effort it takes to add metadata fields to the CMS. The WHFS type members defined in YAML siteprofiles support richer metadata (eg. title, maxValue) which allow WebHare to build the user interface to enter this metadata by itself. You will only need to override WebHare's choice where the defaults are insufficient.

In YAML, contenttypes and their fields will now always have titles so WebHare has a way to refer to these fields in its UI.

YAML based site profiles separate the components used to edit content type data from their layout. When setting up a type:

When building field editors (ie. tab extensions) YAML siteprofiles only need to 'apply' a type to edit. Optionally they can:

Contrast this with XML siteprofiles where:

Our goal is to be able to auto-configure components such as textedit and imgedit purely based on the field type and any value constraints. eg. setting a 'maxLength: 15' constraint should create a properly sized textedits. Explicitly overriding the properties of such a component should hopefully be rare

Defining a type

Setup a xxxxx.siteprl.yml file. Preferably xxxxx should match the typeGroup used below if your siteprofile actually defines types and doesn't just set Apply rules

Types are defined under the types: key in YAML. A siteprofile should also set a typeGroup which is used to derive the full scoped name of a type

typeGroup: global
types:
  page: # the full scoped type name will then be `mymodule:global.page`
    members:
      myFirstMember:
        type: string

Setting up a field editor

apply:
  - to:
      type: http://www.webhare.net/xmlns/publisher/richdocumentfile
    editProps:
      - type: page # or: `mymodule:global.page`

The name editProps will probably change during WH5.6 develompent

Using custom components

Type fields that cannot use an existing component can set a custom tollium component. This component:

Good to know