Monday August 21, 2006 del.icio.us tag clouds einbinden
Durch Einbau des folgende Skripts in die Weblog Schablone (template), kann man im Weblog eine del.icio.us Tag-Cloud anzeigen lassen:
<h2>del.icio.us Tag Cloud</h2> <div class="sidebar"> <script type="text/javascript" src="http://del.icio.us/feeds/js/tags/axelclk?size=12-35;color=999999-333333"></script> <br/> </div>Posted by axelclk ( Aug 21 2006, 08:46:22 PM CEST ) Permalink Comments [0]
Durch das folgende Makro in der _day Schablone (template), hat jetzt jeder Blogeintrag sofort eine Tagleiste zu del.icio.us, digg, dzone, simpy, technorati und slashdot.
#macro ( entryButtons $entry )
#set ( $IMAGES = "http://www.bliki.info/roller/images" )
#set ( $entryURL = "$absBaseURL/page/$userName?entry=$entry.anchor" )
#set ( $catname = $entry.Category.Name )
<div class="ta-entry-footer">
Like this post?
<a href="http://del.icio.us/post?url=$entryURL;title=$entry.title">
<img src="$IMAGES/delicious.gif" title="Post to de.licio.us">tag it</a>
<a href="http://digg.com/submit?phase=2&url=$entryURL&title=$entry.title">
<img src="$IMAGES/digman.gif" title="Digg this entry">digg it</a>
<a href="http://www.dzone.com/links/add.html?url=$entryURL&title=$entry.title">
<img src="$IMAGES/dzone.gif" title="Add to dzone">add to dzone</a>
<a href="http://simpy.com/simpy/LinkAdd.do?title=$entry.title&href=$entryURL">
<img src="$IMAGES/simpy-icon-16x16.png" title="Save to Simpy">simpy this</a>
<a href="http://technorati.com/search/$entryURL">
<img src="$IMAGES/technorati-16x16.png" title="Technorati">technorati</a>
<a href="http://slashdot.org/bookmark.pl?&url=$entryURL">
<img src="$IMAGES/slashdot-13x13.png" title="Slashdot">slashdot</a>
</div>
#end
Danach das Makro einfach in der foreach Schleife aufrufen:
#foreach( $entry in $entries ) <p> ... #entryButtons( $entry ) </p> #endPosted by axelclk ( Aug 21 2006, 08:26:31 PM CEST ) Permalink Comments [0]