PDA

View Full Version : How can i show list of posts from my blog without feed?



Madsex
23 Apr 2013, 10:26 AM
Hi, as title i would to create a page with the list of titles of my blog without feed.

Ipoteticaly i would to do an ajax request to file.php on my server and shoe in Blog panel the results.

Is it possible?

Yhanks for help !

Madsex
23 Apr 2013, 5:38 PM
i tried to change the "getting started" example so:



Ext.define('fantacampioni.view.Blog', {
extend: 'Ext.navigation.View',
requires: [
'Ext.dataview.List',
'Ext.data.proxy.JsonP',
'Ext.data.Store'
],
xtype: 'blog',
config: {
title: 'blog',
iconCls: 'star',

items: {
xtype: 'list',
itemTpl: '{post_title}',
title: 'Recent Posts',
//define store inline
store: {
autoLoad: true,
fields: ['post_title'],

proxy: {
type: 'jsonp',
url: 'http://www.mydomain.it/folder/ajax.php',

reader: {
type: 'json',
rootProperty: 'data'
}
} //proxy
} // store
} //items
} // config
});


I would to show the title of posts of my blog but not work.
Someone can help me?

Thanks