Gfeedfetcher - How can i limit the number of characters in items' titles?
1) Script Title:gfeedfetcher
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...sdisplayer.htm
3) Describe problem: How can i increase the number of characters in feed description?
I need some help to increase the number of characters in the feed discription. I have read to you have to adjust some in the item discription. I tired but didnt work.
Here is my gfeed code, can somebody please tell me what to do. Iam getting crazy ;(
Code:
gfeedfetcher.prototype._displayresult=function(feeds){
var rssoutput=(this.containertag[0]=="li")? "<ul>\n" : ""
gfeedfetcher._sortarray(feeds, this.sortstring)
var itemurl=[], itemtitle=[], itemlabel=[], itemdate=[], itemdescription=[]
for (var i=0; i<feeds.length; i++){
itemurl.push(feeds[i].link)
itemtitle.push('<span class="titlefield"><a href="' + feeds[i].link + '" target="' + this.linktarget + '">' + feeds[i].title + '</a></span>\n')
itemlabel.push(/label/i.test(this.showoptions)? '<span class="labelfield">'+this.feeds[i].ddlabel+'</span>\n' : "")
itemdate.push(gfeedfetcher._formatdate(feeds[i].publishedDate, this.showoptions))
var itemdescriptionsingle=/description/i.test(this.showoptions)? feeds[i].content : /snippet/i.test(this.showoptions)? feeds[i].contentSnippet : ""
itemdescriptionsingle=(itemdescriptionsingle!="")? '<span class="descriptionfield">' + itemdescriptionsingle + '</span>\n' : ""
itemdescription.push(itemdescriptionsingle)
}
Thanks.
Dan