Vulcan/packages/custom/lib/custom_fields.js
2015-05-11 12:39:32 +09:00

45 lines
No EOL
734 B
JavaScript

// Custom Post Field
Posts.registerField({
fieldName: 'customPostField',
fieldSchema: {
type: String,
optional: true,
editableBy: ["member", "admin"]
}
});
// Custom Comment Field
Comments.registerField({
fieldName: 'customCommentField',
fieldSchema: {
type: String,
optional: true,
editableBy: ["member", "admin"]
}
});
// Custom User Field
Users.registerField({
fieldName: 'customUserField',
fieldSchema: {
type: String,
optional: true,
editableBy: ["member", "admin"]
}
});
// Custom Setting Field
Settings.registerField({
fieldName: "customSettingsField",
fieldSchema: {
type: String,
optional: true,
autoform: {
group: "customGroup"
}
}
});