2014-08-29 10:37:35 +09:00
|
|
|
var thumbnailProperty = {
|
|
|
|
propertyName: 'thumbnailUrl',
|
|
|
|
propertySchema: {
|
|
|
|
type: String,
|
2014-10-06 10:40:45 +09:00
|
|
|
optional: true,
|
2014-11-29 15:24:01 +09:00
|
|
|
label: 'thumbnail',
|
2014-10-06 10:40:45 +09:00
|
|
|
autoform: {
|
2014-11-29 15:24:01 +09:00
|
|
|
type: 'bootstrap-postthumbnail'
|
2014-10-06 10:40:45 +09:00
|
|
|
}
|
2014-08-29 10:37:35 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
addToPostSchema.push(thumbnailProperty);
|
|
|
|
|
|
|
|
var mediaProperty = {
|
|
|
|
propertyName: 'media',
|
|
|
|
propertySchema: {
|
|
|
|
type: Object,
|
|
|
|
optional: true,
|
2014-10-05 17:20:15 +09:00
|
|
|
blackbox: true,
|
|
|
|
hidden: true,
|
|
|
|
autoform: {
|
2014-10-06 10:40:45 +09:00
|
|
|
omit: true
|
2014-10-05 17:20:15 +09:00
|
|
|
}
|
2014-08-29 10:37:35 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
addToPostSchema.push(mediaProperty);
|
|
|
|
|
|
|
|
|
|
|
|
postModules.push({
|
|
|
|
template: 'postThumbnail',
|
|
|
|
position: 'center-left'
|
|
|
|
});
|
|
|
|
|
|
|
|
var embedlyKeyProperty = {
|
|
|
|
propertyName: 'embedlyKey',
|
|
|
|
propertySchema: {
|
|
|
|
type: String,
|
2014-09-28 16:31:12 +09:00
|
|
|
optional: true,
|
|
|
|
autoform: {
|
|
|
|
group: 'embedly'
|
|
|
|
}
|
2014-08-29 10:37:35 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
addToSettingsSchema.push(embedlyKeyProperty);
|