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
232
diggs
Report: Apple to launch Verizon iPhone in Q3 2010
submitted by Punisher6602 on 1257615001|%e %b %Y, %H:%M %Z|agohover
37 Comments | Blog this | Email this | Topic: Apple
209
diggs
Time: Motorola DROID review
submitted by TheEngineer2008 on 1257613202|%e %b %Y, %H:%M %Z|agohover
19 Comments | Blog this | Email this | Topic: Gadgets
176
diggs
Inside Apple's industrial design lab
submitted by one504 on 1257612602|%e %b %Y, %H:%M %Z|agohover
27 Comments | Blog this | Email this | Topic: Apple
229
diggs
Windows 7 tops Vista software sales, lags behind in hardware
submitted by 0bamaclintobush on 1257609602|%e %b %Y, %H:%M %Z|agohover
44 Comments | Blog this | Email this | Topic: Apple
197
diggs
Is Facebook a paradise for scammers?
submitted by tryshalosh on 1257599402|%e %b %Y, %H:%M %Z|agohover
34 Comments | Blog this | Email this | Topic: Tech Industry News
308
diggs
Everything You Need to Know About Android 2.0
submitted by RunDiggMC on 1257580202|%e %b %Y, %H:%M %Z|agohover
48 Comments | Blog this | Email this | Topic: Tech Industry News
311
diggs
MacHeist Offers NanoBundle Worth $154, for FREE!
submitted by Iexist08 on 1257579529|%e %b %Y, %H:%M %Z|agohover
20 Comments | Blog this | Email this | Topic: Apple
454
diggs
Rite of Passage (COMIC)
submitted by MrBabyMan on 1257579001|%e %b %Y, %H:%M %Z|agohover
45 Comments | Blog this | Email this | Topic: Programming
361
diggs
Droid Launch: Is This The Start of The Android Revolution?
submitted by MrScotchBoy on 1257564602|%e %b %Y, %H:%M %Z|agohover
118 Comments | Blog this | Email this | Topic: Gadgets
213
diggs
The Search Market Created Microsoft's Worst Enemy
submitted by Shiner76 on 1257558602|%e %b %Y, %H:%M %Z|agohover
31 Comments | Blog this | Email this | Topic: Microsoft
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.





