Bismillah, Alhamdulillah

Skip to Content

Table of contents and Accordion for Blogger

May 15th, 2010

Bismillah
Allahmdulillah, Alhamdulillah, Alhamdulillah
Usually we have so many posts in our blog and if we used TOC it will be very long. If we have very long TOC, it make visitors difficult to read our posts. To make it easy to read I made modification from previous script Table of Contents for Blogger new style and I used Accordion.
Feature of this script :

  1. Accordion effect
  2. Show and hide effect
  3. CSS 3
  4. Automatic add jquery
  5. Different color for content
  6. Different style for open and close
  7. Auto Sort the title
  8. Add New!! for 10 newest entry

How to use is very easy. Create Static Page .
Put the script in Html mode


<link href="http://abu-farhan.com/script/acctoc/acc-toc.css" media="screen" rel="stylesheet" type="text/css"></link>
<script src="http://abu-farhan.com/script/acctoc/daftarisiv2-pack.js"></script>
<script src="http://www.oblo.web.id/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://abu-farhan.com/script/acctoc/accordion-pack.js" type="text/javascript"></script>

Replace www.oblo.web.id with your blog name

Demo

Below images are how to create page in blogger.




Categories: Table of contents, Tips and Tricks Blogger

Tags: ,

Enjoyed this Post?

Subscribe to our RSS Feed, Follow us on Twitter or Comments RSS Feed

Trackback
Leave a response

42 Responses to “Table of contents and Accordion for Blogger”

  1. Asalam Alikom,

    Happy Eid for you all.

    It is really a great post. I will try it once I go back to my house. I hope it will work with me. all the best for you.

    regards,

    H. Belal.

  2. Yamato says:

    Hi abu,
    i like the widget of yours but this will not lead you to success as many people will either change your javascript, or they will use alternatives as you have straight forward attached http://www.abu-farhan dot com
    to it,
    people don’t like things like this, if you want your link in it then make it hidden, in this way you will get back link and people will not find it teasing.
    thank you

  3. Nick New says:

    Please disregard my last comment. I found out what the issue was and it was an error on my part. Very nice! Thanks again.

  4. Nick New says:

    This is a great effect but my only problem is that when I click on a tab it pops open but quickly closes. Is there anyway to fix this? I really would like to use this for my blog. I click the tab once and it opens for half a second then immediately closes. Please provide solution. Anyone.

  5. Atkins says:

    Hi. Great addition for my blog. Thanks.
    But is it possible to have the same thing only categorized by date?

  6. hanif says:

    thank’s for information..
    i like your website

  7. ironeto says:

    Tipsnya bagus semua Mas,Cara buat background bagaimana? mohon pencerahan, Thank’s

  8. Selahattin says:

    Hi Abu,

    I notice that this application don’t work in IE properly. In Chrome and Firefox, everthing is ok, but sometimes accordion effect doesn’t work and all labels are open in IE.
    Could you advise to slove this problem, please?
    Regards

    http://gez-ye-ic.blogspot.com/p/bolgeler.html

  9. how to exclude unwanted labels?

  10. qataban says:

    thanx
    how to align index to right (arabic)

  11. Selahattin says:

    Hi Abu,
    I like your script and use very well.
    http://gez-ye-ic.blogspot.com/p/bolgeler.html

    But, I want to exclude some labels. Because, I give two level labels to posts like wide area label and short area label. So there are dublications on display posts.
    Is there any way to exclude some labels from feed link.
    Thanks for your cooperation.

  12. KEREN……..

    tp mlshnya ada di READMORE jd wktu di klik gak ke baca, mohon bantuannya om abu.. THX.

  13. Malaikat Cinta says:

    keren..

    tp mslhnya ada di readmore om abu.. jd g bs ke bc.. mohon bantuannya !! Thx.

  14. jobsplanet says:

    is this possible on the same post aswell, as i am into job placement and i have to add openings on daily basis, so it becomes to long, it is very difficult to maange, is there solution for this aswell.
    Example:- as i have to add jobs for frehers under post fresher’s and it goes longer and longer.
    is there any solution to this ?

  15. Esydownloads says:

    my page is not supporting the static page
    wen i m creating a new page it get autosummerise
    page it not open like normal post
    pls help me ….
    thaks

    pls see here
    this is my testing blog link

    http://zinn-test.blogspot.com/

    • winlin says:

      I have the same problem as you Esydownloads,
      that issue caused by “read more” widget, which prevent the static pages to be displayed in full mode ,
      I hope brother Abu-farhan has a solution for that.

      Jazaka Allah khair for all your Help.

  16. One significant thing I really enjoy about webpage content could be the truth that they spark an concept in my brain. After that happens, I feel as I have to comment while using the hope it is useful to some people.

  17. krishna says:

    Hi abu, It was not working in my website. The problem is, The list of all posts will be shown but the accordion style will not working. Please see the Image ( http://lh4.ggpht.com/_Kv5tIcZAMKY/TDmnItCcu6I/AAAAAAAABEo/ewu0_NSbVNU/s400/error.JPG ).
    I’m using Modified Blogger Elegence Template.But when i test in another blog with new blogger elegence template it was working. How to solve the problem in my website. please help me

    • krishna says:

      I found the problem, now i’m using jquery multi tab widget in my template, when i’m use this multi tab widget the accordian style will not works, but when i’m using with out jquery multi tab widget your script will be worked. please help me how to solve this problem

  18. FreyaLim says:

    Makasih, mas.
    Script ini benar-benar bagus.

  19. Simeona says:

    I post a only page, contents the four blogs and there are very many posts.
    Could you help me they all appear accordion and first line to be closed?
    Thank you so much for everything we offer with generosity here!

  20. manoz says:

    hey abu, can we have the same thing in widget coz i think this might not work as widget replacing archives.

  21. Sya Isya says:

    abu, I already use the code. the problem i get is there is an error on page. only my 1st label showed all the entry. others, when i click the label, no title showed. Please advice.

  22. erwin says:

    thanks mas bwt infonya……tapi saya gagal neh .. :(
    ko ada note : “Your HTML cannot be accepted: Tag is not allowed: LINK”
    solusinya bagaimana ya mas ??? mohon pencerahanya maklum masih newbie…. ;) Salam

  23. vladimir says:

    Abu thanks for creating and sharing. I am blogging in Spanish and would like to change “new” for “nuevo”. I see 2 options:
    1. Host your modified scripts on google host
    2. Ask if you will be so kind and host as well as spanish version.

  24. Thanks for creating and sharing. I would like to change word “new” to “nuevo” as I live and blog in Spain. And I see two viable solution. Host .js myself on google.code and modify just the word “new” or ask if you will be so kind and add them as a spanish version of TOC to your ttp://abu-farhan.com/script/acctoc. Thank you.

  25. dodo says:

    tks a lot abu it works great
    grazie e ciao

  26. Javed says:

    Is there any way to cross the max result. or can we some how repeat the codes to show all posts in some old blogs where posts has crossed more than 1000?

    thank you

  27. Rock says:

    Wahhh… kayaknya keren nich…
    Coba dulu ahhh…

  28. Beben says:

    wow, feature static page ternyata…
    makin mantap saja nih hack-hacknya…
    wassalam…

  29. aboveoeuf says:

    Nice post. How can I change the color of “new”?
    Thanks

  30. Denny says:

    great effect. its more simple for the finished, with accordion jquery.

    but the problem is blogger haven’t own hosting, this effect need external host for the CSS and 2 scripts. can I write the CSS on default blogger skin?

    in json scripts thats feeds use max-results=50 that mean only 50 article shown?

Leave a Reply

Copyright 2009 - 2010  Choen