mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
45 lines
No EOL
714 B
JavaScript
45 lines
No EOL
714 B
JavaScript
// Custom Post Field
|
|
|
|
Posts.addField({
|
|
fieldName: 'customPostField',
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
editableBy: ["member", "admin"]
|
|
}
|
|
});
|
|
|
|
// Custom Comment Field
|
|
|
|
Comments.addField({
|
|
fieldName: 'customCommentField',
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
editableBy: ["member", "admin"]
|
|
}
|
|
});
|
|
|
|
// Custom User Field
|
|
|
|
Users.addField({
|
|
fieldName: 'customUserField',
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
editableBy: ["member", "admin"]
|
|
}
|
|
});
|
|
|
|
// Custom Setting Field
|
|
|
|
Settings.addField({
|
|
fieldName: "customSettingsField",
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
autoform: {
|
|
group: "customGroup"
|
|
}
|
|
}
|
|
}); |