Log in

View Full Version : RSS Display that does not link?



tjmorgan
09-24-2008, 02:43 AM
If you cannot change the url of an rss feed, how would you create a RSS display that does not link to the source feed. The display just shows the headline content as text?
Which script would you recommend that does not scroll, will show the title/headline and description, and how would I modify it?
Would it be by changing the target?

Thanks, Todd

ddadmin
09-24-2008, 09:04 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

You should be able to modify any of the RSS scripts on DD to remove the actual link to the feed story, by editing the .js file. But in terms of static display, gAjax RSS Feed Displayer (http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm) would be the closest out of the box. To remove the link, inside its .js file, find the remove the part in red inside the below line:


var itemtitle="<a href=\"" + feeds[i].link + "\" target=\"" + this.linktarget + "\" class=\"titlefield\">" + feeds[i].title + "</a>"

tjmorgan
09-24-2008, 11:27 PM
Worked well thank you,
Todd