Closed namlook closed 10 years ago
Other suggestion:
{
BlogPost: {
representation: {
titleField: 'title',
descriptionField: 'description',
thumbField: 'thumb',
geolocationField: 'geolocation',
langField: 'lang'
}
schema: {...}
}
}
In representation
, the field does not necessary be present in schema. It could be a computed field on the model (for instance geolocation
computed from geoLat
and geoLong
)
Fallback to title
and description
. If not present in the content, we can add/overwrite in the model
renderTitle
and renderDescription
.__title__
and __description__
has been renamed in title
and description
.__title__: {bindTo: <field>}
has been changed to aliases: {title: <field>, description: <field>}
The title template are found in
<generic_model>.__title__.hbs
the title and description are defined in template via their helpers: