New to compact framework tutorials? Learn to write your first compact framework application here.
Zac Efron - Hairspray star and Mythbusters' Kari Byron at Celebrity Treat. Check out income and career information in Singapore.

Tuesday, November 22, 2005

- Blogging_: enable categories in your blog

Updated Nov 24: see my latest post with step-by-step instructions on creating categories.

Like many others, I was surprised that Blogger does not support categories. Did a search and found many cool hacks on tagging and creating pseudo categories, such as Zoundry's custom tags, FreshBlog's 3 methods and Billy Joe Jim Bob's multi-blog method. Still, I thought things could be simpler. This is my method:
  • Tag every post with a category by prefixing its title with the category name, e.g. "Blogging: ...", "Getting started: ..."
  • Modify the template code to include a Categories section. Here's an example based on what I have (as you can see in my sidebar, I have a few categories currently; for clarity, this example shows just one category):
<h2 class="sidebar-title">Categories</h2>
<ul>
<li><a href="http://search.blogger.com/?ie=UTF-8
&ui=blg&bl_url=netcf2.blogspot.com&x=0&y=0&scoring=d&
as_q=getting%20started">Getting started</a></li>
</ul>
(Note: the whole <li>...</li> should be on one line, and you should replace netcf2.blogspot.com with your blog url, as well as the value for the as_q parameter.)



When a user clicks on a category link, a blogger search is invoked, searching for posts that contain the category name within this blog. As you may have guessed, the prefixes in the titles make searching more effective. For even better search results, you can have more unique category names (than mine).

Categories: [Blogging_] Tags: [] []

11 Comments:

Blogger Rishi said...

Wow, this is one smart idea. I would have never have thought of this if I never came across this blog! The best idea I could come up with for putting stuff under categories is, make a post with all the posts that belong to that category (which is extremly time consuming, hence I haven't done that yet!)

11/30/2005  
Blogger Morten Skogly said...

Here is another variant:
http://pappmaskin.blogspot.com/2005/10/blogger-categories.html?tag=Art

12/03/2005  
Blogger Joan Sinden said...

Thank you for being smart enough for figure out how to do something like this and make it look so easy! I wish I had all the hours back that I wasted trying to work some way around the system that you so effortlessly just produced!

1/14/2006  
Blogger Unknown said...

Okay, this looks like a great idea. However, When I use the blogger search feture to "search this blog" it never finds all of the posts that I have which contain these keywords, EVEN if the keyword is in the title. I find this to be incredibly annoying, and wonder why this happens.

3/10/2006  
Blogger danchong said...

hi dazed, may I suggest you go to this post at http://netcf2.blogspot.com/2005/11/blogging-categories-categories.html. Some users have asked about this, and I've answered them to the best of my ability. There are also some standard things to check.

3/10/2006  
Anonymous Anonymous said...

yes it's a great idea to similate categories in blogger but it's not accurate 100% because we can have other pages maybe that contain the name of the category but these pages are not in this category

2/10/2009  
Anonymous Anonymous said...

(法新社倫敦四日電) 英國情色大亨芮孟的成人公司昨天說色情,芮孟a片下載日前部落格去世,享壽八十二歲;成人網站這位身價上億的房地產開情色電影發商,曾經a片在倫敦推出av女優色情一場脫色情衣舞情色表演。


芮孟的財產估計達六億五千萬英色情影片鎊(台幣將近四百億),由日本av於他名a片下事業大多分布部落格在倫敦夜av生活區蘇活區成人電影,因此擁有「蘇活之王」的稱號。sex


他的公司「保羅芮a片孟集團」旗下發行多種情色雜誌情色視訊,包括「Razzle成人影片」、「男性世界」以及「Mayfair」。av女優


成人光碟芮孟a片下載本名av女優a片福瑞成人影片av安東尼.奎恩,父成人影片親為搬運承包商。芮孟十五歲離開學校,矢言要在表演事業留成人網站AV片,起先表成人網站演讀心成人術,後來成為巡迴歌舞avdvd雜耍表演的製作人。
情色電影

許多評論家認為,他把情色表演帶進主流社會,一九五九年主部落格持破天荒的av脫衣舞表演,後來更靠情色著在蘇活區與倫敦西區開發房地成人電影產賺得大筆財富。av


有人形容芮孟是英國的海夫納色情a片,地位等同美國的「花花公子」創辦人海夫納。

2/18/2009  
Anonymous Anonymous said...

(法新社a倫敦二B十WE四日電) 「情色二零零七」情趣產品大產自二十三日起在倫敦的肯辛頓奧林匹亞展覽館舉行,倫敦人擺脫對性的保守態度踴躍參觀成人影片,許多穿皮衣與塑膠緊身衣的好色之徒擠進這項世界規模最大的成人生活展,估計三天展期可吸引八a片下載萬多好奇民眾參觀。

A片下載動計畫負責人情色米里根承諾:「要搞浪漫、誘惑人、情色電影玩虐待,你渴望的AV女優我們都有。」

a片說:成人電影「時髦的設計與華麗女裝,從吊飾到束腹到真人大小的色情雕塑,是我們由今年展出的數千件產品精選出的av女優一部分,參展產品還包括時尚服飾、貼身女用內在美、鞋子、珠寶、玩具、影片、藝術成人電影、圖書及遊戲,更不要說性愛輔具成人網站及馬術裝備。」

參觀民眾遊覽兩百五十多個攤位,有性感服裝、玩具及情色情色食品,色情影片迎合各種品味。

大舞台上表演的是美國野蠻搖av滾歌手瑪莉蓮曼森的前妻─全a片世界頭牌脫衣舞孃黛塔范提思,這是她今年在英國唯一一場表演。情色

以一九四零年代成人影片風格演出的黛塔范提思表演性感的天堂鳥、旋轉木馬及羽扇等舞AV蹈。

A片參展成人網站攤位有的推廣情趣用品,有情色電影的公開展示人體藝術和人體雕塑,也有情色藝術家工會成員提供建議。

3/07/2009  
Anonymous iShop said...

This tip is not working anymore

5/30/2009  
Anonymous Thư Quán said...

Please check your sidebar:

Your search - "Getting started_" blogurl:netcf2.blogspot.com - did not match any documents.

5/30/2009  
Blogger Jerry said...

Hi I am trying to make a blog recently but, i still don't understand what you said. Unfortunately, i am not expert for using html or whatever. So can u please put little bit more information about where do i have to put those source.


.main-inner .sidebar .widget h2 {
border-bottom: 1px solid $(widget.title.border.bevel.color);
}

I think i should put that around that source.. am i right??
please let me know.
In case u need "namjeil@lycos.co.kr"

9/06/2011  

Post a Comment

<< Home