April 9, 2012

How To Insert Attractive "Table of Contents Page" Sitemap in Blogger


It's very important for a publisher To insert Sitemap (Table of Contents) in his blog  to make it look more professional. Basically Sitemap (Table of contents) is a place in your blog where all of your post are arranged according to their type.This is the reason why today we will going to Insert a Table of Contents in Blogger.

We have designed a table of contents for blogger which will update automatically so you don't need to just edit it every time when you publish a new post.If you  publish a new post on your blog it will automatically added  to your Table of Contents Page so it really saves lot of time.This Table of Contents widget will display all of your post well arranged under their specific categories (LABELS). 

This widget is designed and optimized with CSS so it looks really attractive and has some Jquery which do attract your eyes.So let us start our fingers rolling over the tutorial.

But first I know you would love to see the preview of the widget,so first see the widget which we are going to apply on our blog




Features:

  • The sitemap (Table of Contents) updates automatically when you publish a post
  • It will automatically tag your latest posts as NEW in sitemap (Table of Contents)
  • All of you posts will be well arranged under there given categories (Labels) 
  • Has a fresh and new look with drop down feature

Adding a Table Of Content in Blogger:


To insert an Attractive Table Of Contents (Sitemap) in Blogger Follow these Steps
  • Go To Blogger >> Template >> Edit HTML >> Proceed 
  • Now search For  ]]></b:skin> in Your Template with (CTRL+F)
  • when you find  ]]></b:skin> just above it  place the following code


/*--------MyBloggerLab TOC-----*/ 
.judul-label{ 
background-color:#E5ECF9; 
font-weight:bold; 
line-height:1.4em; 
margin-bottom:5px; 
overflow:hidden; 
white-space:nowrap; 
vertical-align: baseline; 
margin: 0 2px; 
outline: none; 
cursor: pointer; 
text-decoration: none; 
font: 14px/100% Arial, Helvetica, sans-serif; 
padding: .5em 2em .55em; 
text-shadow: 0 1px 1px rgba(0,0,0,.3); 
-webkit-border-radius: .5em; 
-moz-border-radius: .5em; 
border-radius: .5em; 
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2); 
-moz-box-shadow: 1px 1px 4px #AAAAAA; 
box-shadow: 0 1px 2px rgba(0,0,0,.2); 
color: #e9e9e9; 
border: 2px solid white !important; 
background: #6e6e6e; 
background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757)); 
background: -moz-linear-gradient(top,  #888,  #575757); 
filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757'); 

.data-list{ 
line-height:1.5em; 
margin-left:5px; 
margin-right:5px; 
padding-left:15px; 
padding-right:5px; 
white-space:nowrap; 
text-align:left; 
font-family:"Arial",sans-serif; 
font-size:12px; 

.list-ganjil{ 
background-color:#F6F6F6; 

.headactive{ 
    color: #fef4e9; 
    border: 2px solid white !important; 
    background: #1C8DFF; 
    background: -webkit-gradient(linear, left top, left bottom, from(#9dc2e7), to(#438cd2)); 
    background: -moz-linear-gradient(top,  #9dc2e7,  #438cd2); 
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#9dc2e7', endColorstr='#438cd2'); 
}

  • Now save the template by pressing Save Template button 
  • Now we will create a new page for our Table of contents Remember:we will create a new page not post.To create a new page go to Blogger >> Pages >> New Page >> Blank Page 
  • Now Give title to your page i.e "XYZ Table Of Contents" and now under EDIT HTML tab (button) paste the following code



<script src="http://nurulimaminfo.googlecode.com/files/daftarisiv2-pack.js">

</script> 
<script src="http://www.mybloggerlab.com/feeds/posts/summary?max-results=1000&amp;alt=json-in-script&amp;callback=loadtoc">
</script> 
<script type="text/javascript">
var accToc=true; 
</script> 
<script src="http://deroc.googlecode.com/files/accordion-pack.js" type="text/javascript">
</script>

Now after pasting the code above look for http://www.mybloggerlab.com and replace it with your blog URL and Publish the page now go and view your Amazing Table of Contents with Drop down style.

I Hope you would like this Table Of Contents (TOC) Widget,This widget is totally unique the reason currently we are the only one who has the working version of the Abufarhan Table of contents widget with MyBloggerTricks CSS styling so if you feel any difficulties feel free to ask till then peace, blessings and happy TOC creating

45 comments:

  1. Hello thanks for sharing this, I tried this in my test blog (demonkoikoi.blogspot.com) and it is working fine for me.Tanks Again

    ReplyDelete
  2. @Parigyan Tamuly
    Its our Pleasure That You Liked it Pal,Thanks

    ReplyDelete
  3. http://geekyparigyan.blogspot.in/p/table-of-contents.html I have added i really like the "new" text!!

    ReplyDelete
  4. @Parigyan Tamuly

    Yeh Brother the "NEW" Text is just amazing it updates automatically. When ever you will post updates these Text Automatically Transfers To Your New Post From Old Posts. Thanks For Liking Pal

    ReplyDelete
  5. http://itech24-7.blogspot.com/p/sitemap.html


    See The Above Url..It Is Looking Like That What To Do..Please Reply As Soon As Possible

    ReplyDelete
  6. @Ramakrishna Ch
    Hey Bro, Don't worry The template you are using is not well formed this is the reason why the Page is not opening. Follow the Same Steps but Don't Create a Page instead of Creating a Page Publish a Post...I repeat Again Insert your Sitemap in a Post Not in a Page. And it will work Perfectly. Peace and Blessings.

    ReplyDelete
  7. Really great.
    Is it possible to add "expand all" button in this site map page?

    ReplyDelete
  8. @Syed Faizan Ali... Thank You For The Solution....Can The Template Be Changed...So That I Can Add Other Pages Too...Thanks in advance if you find a solution for my problem

    ReplyDelete
  9. @Dr.Depak Muniraj
    Yes Brother, We can do that but it will take time. If you want it quickly then just remove the JavaScript coding and it will expand every Category automatically in the Sitemap But by doing this the categories will remain expendable. Peace and Blessing.

    ReplyDelete
  10. @Ramakrishna Ch
    Yeah why not If you want to Change a Template then Download any template from http://btemplates.com/ Then Go To Blogger.com >> Your Blog >> Template >> Backup/Restore (This Button will be on Right Side Under your Blogger Display Name) >> Now Select Choose File >> Upload Your Template >> Save >> and Done.Peace and Blessing Buddy

    ReplyDelete
  11. sorry!...i mean not to change the template...any code to display the page properly

    ReplyDelete
  12. @Ramakrishna Ch
    Oh alright Brother it is complicated but not impossible, You can give admin access to me so I can help you further in this issue.

    ReplyDelete
  13. @Ramakrishna Ch
    As currently i Don't know what is the issue in the template. Peace Pal

    ReplyDelete
  14. i can grant you will you do it for me now.....i want your emal id...mail me it ti chnani42@gmail.com

    ReplyDelete
  15. @Ramakrishna Ch
    Email Sent Brother, Yes why not i said previously MBL (MyBloggerLab) is yours we are here to assist you every time :).

    ReplyDelete
  16. YTou must read this article before adding toc or sitemap widget on blogger :

    http://www.netinfozblog.in/2012/05/is-sitemap-widgets-for-blogger-good.html

    This article is about its advantages and disadvantages.

    ReplyDelete
  17. Salaam brother can you tell how to hide certain labels in sitemap http://subulussallaam.blogspot.in/p/site-map.html

    ReplyDelete
  18. @Subul us Sallaam
    Hey Pal, Sorry Brother But Currently In This BETA of Sitemap this function is not added. But Soon in latest version we will try to remove some bugs and will add more stunning features. till then Stay tuned. Peace Buddy

    ReplyDelete
  19. Im Indonesian Blogger. this is great, i have it succesfully visit the beautifull blog created by me http://blogger-totabuan.blogspot.com

    ReplyDelete
  20. Hello, I have about 4000 post with label, 1 post 1 label. Can this show all ? :(

    ReplyDelete
  21. Thanks for sharing about sitemap tools. But bing webmaster do not accept my sitemap

    ReplyDelete
  22. thank you so much... this works perfectly on my blog... i need a little favor!!! can we just sort the desired lables in table of contents??? look at my blog's table of contents.. it kind of messy... i just need to show the desired lables in contents page??? is that possible??? http://www.galaxyyoung.in/p/table-of-content.html

    ReplyDelete
  23. @Em Ji Madhu
    For that You have To Do it Manually If you want to List only Certain Labels. You have To Do Everything from Scratch and it will not update automatically you have to do on your own then. Soon we will release that Manual Site map Stay tuned

    ReplyDelete
  24. I test to
    http://basecinema.net/
    thanks alot

    ReplyDelete
  25. thanks bro
    http://digiunive.blogspot.com/

    ReplyDelete
  26. hi bro, how can i put the table of content and the details in the same page?

    ReplyDelete
    Replies
    1. First Write Your Details and Then Paste the Above Coding. By doing this both things will appear on same page. Peace

      Delete
  27. hi Ali,

    My sitemap page showup when i use google chrome, but it didn't show up when i use firefox or IE. Already clear cache and cookies. Could you please help ? My blog is www.abangdownload.com

    Any help would be appreciate

    ReplyDelete
  28. solved, thanks for the widget

    www.abangdownload.com

    ReplyDelete
  29. after adding code that page tabs are not appearing

    ReplyDelete
    Replies
    1. What kind of error you are actually face. Please provide details. Peace

      Delete
  30. Thank you!

    It is working on my blog @ http://discoverbooktravel.blogspot.com !

    ReplyDelete
  31. I am getting a TOC page, but it is blank. I do have a question. On the step that says to paste the code with the script, it doesn't say whether to paste it before, after, or replacing the existing code. Might that be my problem?

    ReplyDelete
    Replies
    1. Thanks for Commenting, You can Paste the Script any where you like in the Blogger Post Editor (HTML TAB). Hope that helps. Peace

      Delete
  32. Thanks a lot it worked absolutely well.
    I implemented it on my blog sajeelit.blogspot.com

    ReplyDelete
    Replies
    1. At the start it worked properly but now it has messed up with my template.
      Now i cannot upload my previous template.

      Delete
  33. Thanks mate, worked really well. Would it be possible though to display the posts under each heading in chronological order? (i.e. the order with which they were posted)

    thanks heaps,

    http://onandoffthegringotrail.blogspot.com.au/p/blog-page.html

    ReplyDelete
    Replies
    1. Unfortunately, it is not possible with the current setting.

      Delete
    2. Would it be possible to go into the .js scripts and change them?

      Delete
  34. Hi I've been loooking around on Google when i came across your site. The sitemap works fine and looks very profesional,thanks for sharing.

    ReplyDelete
  35. thanks allot for this amazing post i have been looking for this and finally i got it...
    http://ansmachine.blogspot.com/p/sitemap.html take a look of my sitemap

    ReplyDelete
  36. http://jobs-bowl.blogspot.in/p/sitemap.html

    yes it is very helpful

    ReplyDelete
  37. I have alot of pages, and only one post. This only shows posts. How do I get pages too?

    ReplyDelete

We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.