Description
It is easy to import a news feed in the "easy" way. But let us say you want full-blown news from Digg… OK, here it is. Let's use the "Technology" feed located at http://digg.com/rss/containertechnology.xml
For more info please also look at the Feed module documentation.
Code
[[module Feed src="http://digg.com/rss/containertechnology.xml" limit="10"]]
[[div style="float:left;background-color: #ffea6b; background-image: url(http://digg.com/img/digg-box-1-shade-5.gif); width:4em; text-align: center; margin: 0 0.5em 0.5em 0;border-bottom: 1px solid #edda67; border-right: 1px solid #edda67; color: #555;"]]
[[size large]]**%%custom digg:diggCount%%**[[/size]]
diggs
[[/div]]
[[div style="margin-left: 5em"]]
++ %%linked_title%%
[[span style="color: #666; font-size: smaller"]] [[image %%custom_digg:submitter_userimage%% width="16" height="16" style="vertical-align: -0.3em;"]] submitted by [http://digg.org/users/%%custom_digg:submitter_username%% %%custom_digg:submitter_username%%] on %%date%%[[/span]]
%%description%%
[[span style="font-size: smaller; padding-top: -1em;"]] [%%link%% %%custom_digg:commentCount%% Comments] | [%%link%%/blog Blog this] | [%%link%%/share Email this] | Topic: %%custom digg:category%%
[[/span]]
[[/div]]
[[/module]]
In action
98
diggs
The Cost of Living on the Edge
submitted by reflex768 on 1210587121|%e %b %Y, %H:%M %Z|agohover
15 Comments | Blog this | Email this | Topic: Tech Industry News
784
diggs
Finally the definition of Web 2.0 & 3.0
submitted by jstad on 1210557386|%e %b %Y, %H:%M %Z|agohover
163 Comments | Blog this | Email this | Topic: Tech Industry News
1520
diggs
Google TiSP Joke Becomes Reality
submitted by sustainablogger on 1210550646|%e %b %Y, %H:%M %Z|agohover
175 Comments | Blog this | Email this | Topic: Tech Industry News
619
diggs
Data Centers and Global Warming, Will the web crash?
submitted by SkyBlueSky on 1210542705|%e %b %Y, %H:%M %Z|agohover
208 Comments | Blog this | Email this | Topic: Tech Industry News
763
diggs
IFPI Advises Kids to Use LimeWire and Kazaa
submitted by MakiMaki on 1210541264|%e %b %Y, %H:%M %Z|agohover
129 Comments | Blog this | Email this | Topic: Tech Industry News
2197
diggs
Happy Mothers Day Google Logo 2008
submitted by bamafun on 1210529258|%e %b %Y, %H:%M %Z|agohover
303 Comments | Blog this | Email this | Topic: Design
736
diggs
Fedora 9 released ! we have the first screenshots of Sulphur
submitted by anyweb on 1210527803|%e %b %Y, %H:%M %Z|agohover
170 Comments | Blog this | Email this | Topic: Linux/Unix
876
diggs
Zune breaks 2 million sold, stealing market from Creative
submitted by TalSiach on 1210523344|%e %b %Y, %H:%M %Z|agohover
277 Comments | Blog this | Email this | Topic: Microsoft
239
diggs
The (Virtual) Global Office
submitted by zen53 on 1210512810|%e %b %Y, %H:%M %Z|agohover
7 Comments | Blog this | Email this | Topic: Tech Industry News
316
diggs
Preserving Old Movies, At 40 Degrees
submitted by adrian67 on 1210509437|%e %b %Y, %H:%M %Z|agohover
24 Comments | Blog this | Email this | Topic: Tech Industry News
You can of course improve the formatting or customize the feed. In particular you can of course combine several feeds — just separate different RSS sources by a coma delimiter (",").
The hack presented above does not aim to reproduce the exact digg-style but shows that using the simple tricks you can come quite close. And of course it demonstrates the power of Wikidot ;-)
For more details please consult the Feed module documentation.
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.





Comments