The job is done. We now have a complete interactive Table Of Contents. Click the button in my sidebar to display the TOC. You can sort the TOC by Post Title by clicking the column header. Click it again, and it is sorted in reversed order. The same way if you want to sort the posts by date: newest first, or oldest first. And by clicking on one of the labels in the TOC filters all posts with that label. Click the column header to return to the full ToC.
Here is how to install it to your Blog.
Step 1: Back Up your Template.
Step 2: Add a HTML Page Element
Edit your template in HTML-mode, and look for the
Change that line as follows:
Save the template and switch to the Page Elements Tab.
Add a HTML page element above your Blog Posts element.
Leave the title blank. Add the following html:
Save your template.
Step 3: Add a Sidebar HTML-element
Now add a HTML-element to the sidebar. Set the title to "TOC".
For the contents, enter:
Replace YOURBLOG with the name of ...... exactly.
Oh yes, and save.
Step 4: Add custom styles to the skin of your template.
New id's and classes are:
#toc : the div-wrapper that contains the TOC
.toc-header-col1 : header of column 1
.toc-header-col2 : header of column 2
.toc-header-col3 : header of column 3
.toc-entry-col1 : cell in column 1
.toc-entry-col2 : cell in column 2
.toc-entry-col3 : cell in column 3
For your convenience: Beautiful Beta uses the following styling:
You can add this to the
Enjoy!
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment