Skip to main content

Categories and Static Pages in Blogger

1. Static pages
A recent addition to the blogger in draft is the feature that allows the blog owners to add static pages to the blog. According to the blog up to 10 static pages can be added to the blog now. This can be done inside the posting section where now a separate tab is available for adding new pages.

2. Categories
Blogger still does not allow the authors to add categories to the blog. This sometime is a must for a blog. Especially for the blogs like the one you are currently reading. This is a tech blog and because tech in itself is a vast topic to blog about categories are needed. So I devised a way to easily add categories to my blog. Prior to this I searched the internet for some solution but all the solutions I got either were too complicated for anyone to apply to their blog or were simply not the type I was searching for
The solution I devised allows you to add categories to the blog and the main stream of posts remain untouched. When the reader clicks on any of the categories link all the posts related to that very category are shown. In addition to this this is a very simple and easy to apply hack.
This is the type of categories im talking about. To experience it yourself just click on any link present in the left sidebar

So let’s start
a. First of all. For this thing to work all of your posts must be of a specific format. That is let the posts be like anything you want it to be but add a label similar to the category you want your post to be. Like the labels in this blog im using are.
#cloud
#tipsandtricks
#generalInfo
#windows7
You can make your own labels and then add them under every post you want to be added to the categories. Then publish the posts. Ex suppose have written a blog post that is related to changes in registry in windows7 then add ‘#windows7’ and ‘#tipsandtricks’ to the labels the rest of the labels can be anything you want them to be.
b. So now when all the work related to the posts is ready. Go to the design section of your dashboard and follow the presentation below.

The code reffered to as “THE CODE” in the presentation is this
<div id="categories">
<p style="height:40px">
<a
style="border:0px;margin:0px 0px 0px 0px;" href="LINK TO THE LABEL ">
NAME OF THE CATEGORY
</a>
</p>
</div>
Thanku
Please leave comments


Comments

Popular posts from this blog

Customized Online Learning Dangerous as it is Necessary

The recent uprise in Online Learning Platform like Pluralsight, Coursera has raised some important questions over traditional learning system and also on traditional examination systems.
The fact that online learning courses are derived from what users need and not what should be actually taught has also raised serious concerns about what is finally going inside the heads of professionals.

Traditional system while teaching any subject also includes major things that might never be used in real life but still is important to actual context of that particular subject. The syllabus goes through the hands of experts before finally reaching the learners. Online education / Videos have completely disrupted this system and now only what is needed is taught leaving out all the motivational factors and context of the subject that brings glamour and other related attributes to the identity of the subject.

So yes while system has to evolve to teach students more than C++ in today's world bu…

Dynaminism in .Net 4.0

few dayz ago came across THIS question.
the solution to this can easily be figured out by the new dynamic features introduced in .Net 4.0.
i have made a project to demonstrate this.
the main code in the project goes like this

publicstaticdynamic[] GetDynamicObject(DataTable dt, Dictionary<string, string> mapping)
        {
List<dynamic> returnList = newList<dynamic>();
foreach (DataRow row in dt.Rows)
            {
dynamic obj = newExpandoObject();
var objectDic = (IDictionary<string, object>)obj;
foreach (DataColumn column in dt.Columns)
                {
                    objectDic.Add(mapping!=null?mapping.ContainsKey(column.ColumnName) ? mapping[column.ColumnName] : column.ColumnName:column.ColumnName,row[column]);
                }
                returnList.Add(obj);
            }
return returnList.ToArray();
        }The static method here named "GetDynamicObject" simply takes a data table(which can be populated by the data in the database) and a dictionary of…

Its a Dynamic(javascript) world

I thought we are living in a world which looked like this ||(or) mayb this http://www.ihatejavascript.com/.. LOL


being a web developer i was working with javascript and also at the same time i always preferred to work with something else... Silverlight, Flash mayb.. till recently.. i actually saw what JAVASCRIPT is || has become in the time i worked on ASP.Net MVC.


Javascript evolved from a dynamic sort of functional language that was differently implemented by nearly every browser(and yes that was for you IE6) and every one hated him and i thought it still is that ulgy thing. till i just stumbled upon THIS


This is an old video.. someone was just trying to bring the Javascript to server side. so now same developer /*Who a Javascript developer?*/ can work on both the sides.. client as well as web. and thought that things like these shouldn't be allowed on internet maybe because its a hour long video and now has around 233,492 views just consider the amount ot developer hours wasted her…