Skip to content
Noodlewitt edited this page Aug 26, 2015 · 7 revisions

There's a number of field types. Each one has a field parameters column, where you can customise the field add in validation, add in a tooltip etc.:

text

{
    "tooltip":"",
    "max_number":1
}

upload

{
    "validation": {
      "mimes":"gif,jpeg,bmp,png",
      "size":"5120"
    },
    "tooltip": "",
    "count": 1
}

checkbox

{
    "values": {
      "checked": "1",
      "unchecked": "0"
    },
    "tooltip": ""
}

static

for printing static fields

textarea

Textarea boxes

tags

{
    "values": {
      "tag1": "Some default tags in here",
      "tag2": "some other default tag"
    },
    "max_number":1,
    "tooltip": "",
    "multiple": true,
    "delimeter":',',
    "search":true,
    "maxTags":99,
    "placeholder":"Some placeholder"
}

dropdown

{
    "values": {
      "": "Please Select",
      "customise": "You need to cusomise the values from field_parameters"
    },
    "max_number":1,
    "tooltip": "",
    "multiple": true,
    "search":true,
    "delimeter":',',
    "maxTags":99,
    "placeholder":"Some placeholder"
}

###datepicker uses plugin here: http://eternicode.github.io/bootstrap-datepicker/ - as such, options can go into the options object like this..

{
    "options":{
        "data-date-format": "dd/mm/yyyy",
        "data-date-today-button": "true"
    },
    "max_number":1,
    "tooltip": ""
}

###tinymce

This shows a tinymce editor so they can add in links, images etc as content. It's based off the tinymce plugin. Advanced options will eventually be in here too.

###colour

A colour picker that sets a hex colour value into the cms.

table

will be tabulated data for multiple fields