Vulcan/packages/custom/lib/settings.js

16 lines
411 B
JavaScript
Raw Normal View History

2015-01-01 18:47:11 +09:00
// Custom Setting
var customSetting = {
propertyName: "customSetting",
2015-01-01 18:47:11 +09:00
propertySchema: {
type: String,
optional: true,
2015-05-07 18:00:23 +09:00
private: true, // mark as private (not published to client)
2015-01-01 18:47:11 +09:00
autoform: {
group: "customGroup", // assign custom group (fieldset) in Settings form
class: "private-field"
2015-01-01 18:47:11 +09:00
}
}
}
Settings.registerField(customSetting);