dasBlog has a TagCloud feature which you can use to replace the Category List that is setup in most of the themes. Here's how I replaced the Categories listing displayed by default in the calmBlue theme with the Tags section you see in the right-hand section of this site.

First, decide if you want to create a new theme or modify the existing theme files. To create new theme, copy the contents of the theme you want to start from to a new directory and then update the theme.manifest file with a name and other meta-info for your new theme.

Next, open base.css and add CSS for the required TagCloud styles (you can modify these to be whatever you like, they just have to be present for the tags to display):

/* TagCloud styles */
.tagCloud 
{    
    LINE-HEIGHT: 200%
} 

A.smallerTag 
{    
    FONT-WEIGHT: normal;    
    FONT-SIZE: 105%
} 

A.mediumTag 
{
    FONT-SIZE: 115%
} 

A.largeTag 
{
    FONT-SIZE: 120%
} 

A.smallTag 
{
    FONT-SIZE: 110%
} 

A.smallestTag 
{
    FONT-WEIGHT: normal;    
    FONT-SIZE: 100%
} 

A.largerTag 
{
    FONT-SIZE: 130%
} 

A.largestTag 
{
    FONT-SIZE: 135%
}
/* end TagCloud styles */      


Finally, open the theme homeTemplate.blogtemplate file and modify the section that is currently displaying the Category listing to display a TagCloud instead. Here's how it looks in my theme after modifying the calmBlue theme:

<table class="MarginSection" width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td class="MarginSectionHeading">Tags</td></tr>
    <tr><td class="MarginSectionBody">
        <%drawTagCloud()%>
    </td></tr>
</table>

If you would like a closer look at the code, here's a zip file (3.13 KB) of the work-in-progress theme as of 12/30/08.

 

Bookmark and Share  Comments [2] | Permalink | dasBlog
Sunday, March 01, 2009 10:13:07 AM (Mountain Standard Time, UTC-07:00)
Hey
Is it possible that the tags are getting cached somehow? First I thought my tag cloud didn't work at all, so I just went for a clean install of dasBlog and tried out the dasBlog theme which has the drawTagCloud macro already defined. Adding a few posts with different categories didn't update my tag cloud.
Bart
Sunday, March 01, 2009 1:16:40 PM (Mountain Standard Time, UTC-07:00)
I have seen that dasBlog implements caching on the tags when adding a post or re-categorizing. It seems to update within about 5-20 minutes. If you have some control of IIS at your ISP, try restarting IIS and see if that forces it to re-cache.
Mike

Leave a Comment

Name (required)
Email (will not be published)
Website
 

Comment Preview
Subscribe
Top 5 Posts
Add Google Analytics to a SharePoint Publishing Site
Integrating jQuery 1.3, ASP.NET 3.5 Visual Studio 2008
Add Custom Table Formats to SharePoint Content Editor
Configuring log4net for SharePoint Windows Authentication
Convert Visual Studio 2008 Class Library Project to Web Application Project
Tags
ASP.NET (5) dasBlog (5) GoogleAnalytics (2) jQuery (1) log4net (2) SharePoint (18) WebDesign (3)
 
 
 
Spreadfirefox Affiliate Button
 
Download Notepad++