How to stop the Dynamic Feed Control Wizard from striping out hyperlinks

64 views
Skip to first unread message

JeffP

unread,
Sep 3, 2010, 5:36:58 PM9/3/10
to Google AJAX APIs
I am using hyperlinks in the body of my blogpost. I want them to
remain links when viewed with the Dynamic Feed Control. Any way to
stop the Dynamic Feed Control from stripping out my links?

Thx,
Jeff

omr

unread,
Sep 3, 2010, 10:11:11 PM9/3/10
to Google AJAX APIs

One possible workaround is to display the full content of each feed
entry, instead of the snippets generated by the Feed API. To replace
the snippets with full content, add this code at the beginning of your
LoadDynamicFeedControl function.

var gfLoad = google.feeds.Feed.prototype.load;
google.feeds.Feed.prototype.load =
function(callback) {
gfLoad.call(this,
function(feedResult) {
var entries = feedResult.feed.entries;
for (var i=0, entry; entry = entries[i]; i++) {
entry.contentSnippet = entry.content;
}
callback(feedResult);
}
);
};

If your feed contains long entries, the full content may overflow the
DFC entry display area. You may want to increase the height of the
entry area, and add a vertical scroll bar, and if your feed contains
images you may want to conceal them. (This example sets the entry
area height to 200 pixels; adjust as you wish.)

<style type="text/css">
div.gfg-entry {
height: 200px;
margin: 0;
padding-top: 3px;
}
div.gf-result {
overflow-y: scroll;
}
div.gf-result img {
display: none;
}
</style>

-- omr

JeffP

unread,
Sep 6, 2010, 2:40:13 PM9/6/10
to Google AJAX APIs
Worked like a charm! Thx for short cutting it for me!

Jeff

JeffP

unread,
Sep 6, 2010, 2:40:03 PM9/6/10
to Google AJAX APIs
Reply all
Reply to author
Forward
0 new messages