Sunday, April 17, 2011

Creating Sub categories in Blogger

OK, Before anyone of you start
http://wall69.blogspot.com

and make sure this is what you want.

Now, when you place your curser on Naruto

hyperlink there is :
http://wall69.blogspot.com/search/label/Naruto :?max-results=12

look at the part Naruto :

when you click on Naruto label you will see all it characters
in the box just below it, that is what i meant by sub categories

But to implement this you must know JavsScript, i will paost code if i get time, i was hoping bloggers will not need it, as google(blogger/blogspot) will eventually inplement this feature and provide it as basic feature to all bloggers.

well anyway:

All the subcategories will be

CategoryA : Sub-Category01
CategoryA : Sub-Category02
CategoryA : Sub-Category03

CategoryB : Sub-Category01
CategoryB : Sub-Category02
CategoryB : Sub-Category03

now the trick is using [space]:[space]

in the label widget modify the widget, as it will read URL and see if there is "CategoryA :" present in URL
and only display lables with "CategoryA :" in it, but remove the part "CategoryA :" from it and only Sub-Category01, Sub-Category02, Sub-Category03 will be be displayed.

hope you understood what i am trying to say. you must know JavaScript to implement this, dont worry it is easy, and it will surely help you if you learn it now, and it is funniest and interesting language i had ever learned.

if you don't get it, too bad, but i will try to write and explain whole code if i get time, soon.

No comments:

Post a Comment