Build a perfect Tag Cloud page

| No Comments | No TrackBacks

MovableType 3.31 introduced Tag as a new feature.

I'd like to tell you how to build a perfect Tag Cloud page.

1) Create a new Index template. Add the html code as below.

tagcloud-template.jpg

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="David Yin" /> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" /> <title>Tag cloud : <$MTBlogName encode_html="1"$></title> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" /> </head> <body class="layout-one-column"> <div id="container"> <div id="container-inner" class="pkg"> <div id="banner"> <div id="banner-inner" class="pkg"> <h1 id="banner-header"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></h1> <h2 id="banner-description"><$MTBlogDescription$></h2> </div> </div> <div id="pagebody"> <div id="pagebody-inner" class="pkg"> <div id="alpha"> <div id="alpha-inner" class="pkg"> <h3 class="entry-header"> Tag Cloud </h3> <MTTags> <a href="<$MTTagSearchLink$>" class="tag<$MTTagRank max="7"$>"><$MTTagName$></a> </MTTags> </div> <hr/> <p> This Tag Cloud page is designed by <a href="http://www.yinfor.com/blog/">David Yin.</a> </p> </div> </div> </div> </div> </div> </body> </html>

2) Add a link in your Main Index. This step is so easy, I don't explain it.

3) Add some code into the end of your stylesheet template

.tag1{
font-size: xx-large;
color: #6588c7;
}
.tag2{
font-size: x-large;
color: #5578a7;
}
.tag3{
font-size: large;
color: #4568a7;
}
.tag4{
font-size: medium;
color: #406097;
}
.tag5{
font-size: small;
color: #355897;
}
.tag6{
font-size: x-small;
color: #305087;
}
.tag7{
font-size: xx-small;
color: #254887;
}

Build your site, it is here.
tagcloud-sample.jpg


Related Articles

No TrackBacks

TrackBack URL: http://www.yinfor.com/mtcgi/mt-t-0912.cgi/1060

Leave a comment

About this Entry

This page contains a single entry by David Yin published on August 16, 2006 1:59 AM.

Google's Big Daddy data centre was the previous entry in this blog.

Send SMS by Voipstunt is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.21-en

Online Tools