Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 772 Bytes

0.3.1_2014-04-10.md

File metadata and controls

25 lines (20 loc) · 772 Bytes

0.3.1

  • features
    • major content schema change. Node and types are now part of meta

Example:

var obj = {
    meta: {
        type: '524362aa56c02c0703000001',
        node : '526d5179966a883540000006',
        labelfield: 'testfield'
    },
    fields: {
        label: 'Generated title',
        testfield: 'testtest'
    }
};

NOTE: This is not backwards compatible with v0.2.x of grasshopper core.

Migration instructions (content collection):

  1. move type into the meta collection
  2. move node into the meta collection and change from node : {_id: '526d5179966a883540000006', displayOrder: 1} to just node: '<id>'
  3. add labelfield to meta collection which should be the first field defined in the content type