Test new features

All | General | WikiBlogging | Eclipse
20060821 Monday August 21, 2006

Creating del.icio.us tag cloud

How to show a del.icio.us tag cloud in the groovy-news blog?

<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, 09:06:33 PM CEST ) Permalink Comments [0]

Tag-o-mania

I inserted the following macro in the _day template of the basic theme. Through this macro every blog entry has now tag links for del.icio.us, digg, dzone, simpy, technorati and slashdot.

#macro ( entryButtons $entry )
    #set ( $IMAGES = "http://www.groovy-news.org/e/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

Simply call this macro in the foreach loop:

#foreach( $entry in $entries )
<p>
...
   #entryButtons( $entry )
</p>
#end
Posted by axelclk ( Aug 21 2006, 08:50:11 PM CEST ) Permalink Comments [0]

Calendar

RSS Feeds

Search

Links

Navigation

Referers