22 Using a "Tab View" widget to streamline content
November 14, 2007 /

Highlighting your recent posts, comments and label feeds is a great way of ensuring readers will stay on your blog for a longer period of time. However, featuring too much content in your sidebar or above the main posts column can often make your blog appear cluttered.

A more streamlined method for presenting such content is to use a tabbed navigation widget, like this:

This widget was designed by Hoctro, and uses JSON calls to gather recent posts, recent comments and labels feeds from your blog. Once installed, readers can click on a tab and the relevant content will appear in the section beneath.

Hoctro's Tab View widget ensures that your readers can easily access other areas of interest in your blog: when the tab labels are clicked, the section beneath is updated with relevant lists of posts or comments so your readers can easily navigate to other areas of your blog. This widget is based on the Yahoo! TabView application, and uses Javascript to call the clickable titles of recent posts, comments and label feeds which are quickly loaded into the space beneath the tabs.

To install this widget in your own blog, head on over to Hoctro's Place where you will find full instructions and all the code required for the Tab View widget to work. There are no externally hosted files for this widget, as all of the code is provided for you to paste into your template.

At first glance, the array of code may seem confusing, so to make this easier to understand, I will outline the five steps for installation here:

How to install Hoctro's Tab View Widget

  1. Back up your blog template by going to Template>Edit HTML and clicking on the "Download full template" link.
  2. Install the latest version of Hoctro's Javascript core library: This is a large portion of code which you need to copy and paste just before the closing </head> tag in your blog's template.
  3. Install the Yahoo! Tab View requirements: This portion of code can be found on the Tab View widget page, and should be pasted immediately after the Javascript core library, but before the closing </head> tag.
  4. Install the Tab View widget code: Again, this portion of code can be found on the Tab View Widget page in Hoctro's blog. Paste this whole section of code between any two <b:section> and </b:section> tags in your template (for example, in the sidebar section). It is easiest to do this while the widget templates are not expanded, to make it easier for you to locate the correct area in which to paste the code.
  5. Finally, you will need to change the title of the widget, the labels and the URL of your blog:
    • For the labels, ensure the labels match the exact label names of your own blog's labels. These are case sensitive, so ensure you use the same uppercase or lowercase labels as appear in your own blog.
    • For your blog's url, simply enter your blog URL without the "http://" part. For example: yourblog.blogspot.com or www.yourblog.com
    Then save your template and take a look at your new Tabs View widget!

You can easily move the position of the widget simply by moving it in the Layout section of your Blogger dashboard. I feel the optimum place for this widget is above the main posts section, or as an extra element in the header. I did experiment with this in a widened sidebar, but the space was simply not wide enough for the five tabs to be presented well (although this did still work as it was intended!).

While I have found Hoctro's Tab View to be a very useful widget, I would prefer to be able to customize such a widget with different content, such as "Popular Posts", Archives and "Featured Posts". Currently I am working on a modification of the original Yahoo! TabView application, which can be installed directly into an HTML/Javascript widget. Although this widget will require more customization to suit your individual blog and preferences, it will be much easier to modify after the initial installation. I hope to be able to post a full tutorial and installation guide for this by the weekend once I've perfected the style of the tabs.

I hope this post has been useful in explaining the use and benefits of the Tab View widget. Please feel free to leave your comments and suggestions below.

22 Comments:

15 November 2007 13:15 Angel said...

Thanks for this! :) Let's see if I can use this. Always helpful Amanda! :)

15 November 2007 13:23 Amanda said...

Hello Angel,

Almost finished the customized TabView widget now. I'll email you about this as there are two options for installation (and a loooong tutorial to follow soon)

Best wishes,

Amanda

21 November 2007 12:48 .ink. said...

Ah, wonderful, Amanda! I am very happy to see that you will modify Hoctro's Tab View Widget to include Archives, etc.

Archives, and other lists, can take up a lot of sidebar real estate (and the drop-down menu has no style (unless there's a way to customize?)).

I look forward to using Tab View Widget once you post.

With best regards,

.Ink.

22 November 2007 09:32 Amanda said...

Hello .Ink,

I will probably post the tutorial for this over the weekend, as I first want to make a few adjustments to ensure it looks better in the blog. The archives will be an automatic feature of this widget, though other elements (such as labels, comments, recent posts) would have to be inserted manually, rather than appearing (almost) instantly as in Hoctro's version.

I hope this will be useful to you all.

Best wishes,

Amanda

22 November 2007 19:58 ProphetMother said...

I'm staying tuned in for this one! Exciting! We are so thankful for you and your genius skills! Happy Thanksgiving!

24 November 2007 00:03 .ink. said...

Amanda, regarding using Tabview widget in sidebar, there might be a template your work will fit nicely.

It's a WP design by Yichi at vikiworks.com and has been ported to Blogger by zonacerebral.com. This design has an ample 400px wide top sidebar, followed underneath with split 200px left/right sidebars.

14 June 2008 21:35 Bruno Gallo said...

Amanda, thanks for your help:
I tried to do this, but only get de tabs of lastets post and lastest comments. I follow the instruction of typing extact text of the others labels i want to display but they arent appearing

help!

http://aulacontemporanea.blogspot.com/

regards

gallobruno@gmail.com

29 July 2008 18:46 রাশেদ said...

Hi Amanda!

How can I use it for Archive and Categories tab? Can u give me a short explanation plz?

30 July 2008 18:53 free psp games said...

I tried to do this, but only get de tabs of lastets post and lastest comments. I follow the instruction of typing extact text of the others labels i want to display but they arent appearing

help!

8 August 2008 03:33 opman said...

can i put this tab view with the post body instead of a widget. if so then how. i already use domtab as it came with my template in my blog. http://fortetest123.blogspot.com is the blog address.
and each tab content will be a video. is there any way to do it. thanks.
mail me to das_0088@yahoo.com if you have any solution.

19 September 2008 17:26 Hoctro said...

Thank you Amanda for promoting and using my widgets!

Best regards,

Hoctro
9/2008

7 October 2008 05:09 Fadli Chan said...

Great Information...

Nice to see u and "say hello from Indonesia"!!

12 December 2008 12:46 Professional Career Guide said...

When I am going to place it at the sidebar, the text are coming out from the tab.
Please fix it Amanda.

4 January 2009 07:07 miztahkebz said...

hello. How do i put the tabs on my sidebar thanks

www.kevzmoney.blogspot.com

5 January 2009 06:58 online games said...

Exciting! We are so thankful for you and your genius skills!

23 January 2009 10:36 Just Me said...

hi amanda, i tried this but it did not work for me, all i see is my blog title on top of my post and it's not clickable as i've expected. what i did was to remove the widget from my page element.

www.mirrorsinframes.blogspot.com

5 February 2009 23:08 Hungry Jenny said...

Hi

I've managed to do this but don't understand the 'labels' part and how to add a tab for the archive. I want to have just the 'latest posts' and 'archive' tabs for now, and possibly drop 'latest comments'.

Please can you help?

Cheers!

Hungry Jenny x

18 February 2009 05:42 Djoen said...

Thanks you very much !

28 February 2009 21:30 futbolfrk said...

it's a good widget, but it only shows the latest posts and latest comments tabs. How do I remedy this?

26 April 2009 05:32 Perspective Shift Chris said...

Thanks for the post, this is what I was looking for :)

10 October 2009 11:22 neilhoja said...

This blog is open to invited readers only

http://hoctro.blogspot.com/

where do can i find the js?

Post a Comment

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me