Vulcan/packages/custom/lib/custom_fields.js

17 lines
639 B
JavaScript
Raw Normal View History

2014-12-11 12:07:41 +09:00
// Custom Post Property
var customProperty = {
propertyName: 'customProperty',
propertySchema: {
2014-12-11 12:07:41 +09:00
type: String, // property type
label: 'customLabel', // key string used for internationalization
optional: true, // make this property optional
autoform: {
2014-12-11 12:07:41 +09:00
editable: true, // make this property editable by users
2015-01-02 18:16:26 +09:00
type: "bootstrap-datetimepicker", // assign a custom input type
omit: false // set to true to omit field from form entirely
}
}
}
Posts.addToSchema(customProperty);