16 Dec 2006 12:56 AM #1
If I only want to display the most recent RSS posting with YAHOO.ext.View, is that something I set in View's config or do I take care of that with the data model?
I suppose I'm also interested in being able to control the number of items per feed.
I didn't want to bother you with this, but I've been poking around for a few hours and thought I should ask the man who would know...
16 Dec 2006 10:15 AM #2
Showing only the first one when there's more than one loaded is tricky since the view is "bound" the data model. You might want to unplug the data model, manually grab the first row row and render it into the view using the view's template. After you are done set the data model again. There are some methods for doing this on the view.
If the feed you are loading supports parameters, you can pass them via the load() method. Otherwise you run into the same problem where all that are loaded are displayed.
If you are using a proxy on the server (and I would assume you are) you can parse and limit the xml on the server where you would have greater flexibility.
16 Dec 2006 7:01 PM #3
I thought about that for the server side, but if I'm reading a feed that I don't control, I guess that's where I see the problem...
By jon.whitcraft in forum Community DiscussionReplies: 18Last Post: 19 Feb 2009, 1:58 AM
By xsokev in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 19 Feb 2007, 8:42 PM
By BernardChhun in forum Community DiscussionReplies: 3Last Post: 10 Feb 2007, 9:13 AM
By ncubeait in forum Ext 1.x: Help & DiscussionReplies: 10Last Post: 9 Feb 2007, 4:35 AM
By zquirm in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 20 Dec 2006, 10:01 PM