Hi there,
I'm trying to get the thumbnail url to display in my list. But I can't figure out how to enter it in to the "mapping" field of my model?
Update: The thumbnails appear to show up occassionally if I just use 'thumbnail' in the mapping. But on refresh, they show up as broken image links again.
http://theojai.net/?json=get_recent_posts
My Model:
Code:
Ext.define('MyApp.model.Tweet', { extend: 'Ext.data.Model',
config: {
fields: [
{
name: 'title',
mapping: 'title'
},
{
name: 'excerpt',
mapping: 'excerpt'
},
{
name: 'thumbnail',
mapping: 'thumbnail.url'
}
]
}
});