![]()
I have just released the “Easy Tabs Web Part” for SharePoint 2007. Check out the demo, the video and the Web Part for download on my SharePoint site:
http://www.pathtosharepoint.com/pages/easyTabs.aspx
The Web Part can be used on a SharePoint 2007 site by anybody who has design or full control permissions (it is actually based on a Content Editor Web Part). The installation does not require server access.
Update [5/24/2009] In addition to the swf format on my SharePoint site, the screencast is now available on YouTube. Duration:1min25.
Update [5/26/2009] Thanks all for the great feedback (comments and e-mails)!
I have added a twin Web Part to the download section, for those who want another set of tabs for another Web Part zone on the same page.
I am also going to add two sections on the site, one for FAQ and another to track known issues.
Update [5/29/2009] Version 2 now includes cookies. Reloaded pages will remember the active tab. This is useful for example when you switch between different views of a calendar (Mark’s comment), or if you use sorting/filtering options on list columns.

142 comments
Comments feed for this article
May 20, 2009 at 6:49 pm
Renee, the lurker
Hey Christophe,
I just found your blog earlier this week and man, you seriously ROCK! No doubt you’ll get MVP-hood soon, and it’ll be well-deserved. You’re doing an outstanding job at making Sharepoint more accessible. Please keep it up….
Do consider turning on some sort of archive navigation feature though, to improve access into your earlier blogs.
Regards,
Renee
May 20, 2009 at 7:46 pm
Iain Munro
Hi Christophe
Excellent. A couple of comments that would improve this.
If I wanted to add more data to each page then all it will do is create another tab.
What about if I want 2 or three web parts on the same page?
A combination of this plus what Peter Allen did on Bit of Sharepoint would be killer.
Keep up the great work.
Iain
May 20, 2009 at 8:58 pm
Iain Munro
Hi Christophe
Just to letr you know, I added in your easytabs in conjunction with Peter Allens’ Tabs and it works very nicely.
Iain
May 20, 2009 at 9:05 pm
Iain Munro
Hi Christophe
With the exception of what I mention the other day – it does not like 2 or more jquery expressions looking up other site lists.
Iain
May 21, 2009 at 12:56 am
Christophe
Thanks Renee
There’s a categories navigation on the left side of the blog, for my main topics (menus, jQuery, etc.).
What I am actually trying to do – and this post is an example – is push my how-to articles to my SharePoint site, where I can easierly organize content by topic and have cross-references. I am keeping the blog for announcements, one-time topics, and of course… readers’ comments!
May 21, 2009 at 2:04 am
Christophe
Thanks for the comments Iain.
There are many variations around my solution. My design choice was to offer a no brainer. Add it to your page, and immediately it works. Remove it, and your page is back to its initial state.
I have sent you an e-mail about your issue.
May 21, 2009 at 2:39 am
Mark
Phenomenal work Christophe!
May 21, 2009 at 6:33 am
Marso
Christophe, You have built an awesome webpart – it works fine on my site. By the way, how can I change the colors of the tabs? They do NOT change if I change the theme of the site while in Excel web access web-part the colors of toolbar are changing.
Does it have something to do with some missing style sheets or anything else? They just remain standard blue colored.
I could not find these classes in any other page, could You name the CSS file which contains the color definitions for the tabs?
May 21, 2009 at 3:12 pm
Jesús
Christophe, thank you very much for sharing this great work!
The problem I have is that if I put the tabs in a webpart zone I can not put more webparts in the same webpart zone or up or down
Any solution?
Thanks again!
May 21, 2009 at 3:40 pm
Jim
Christophe – this looks very interesting! I am amazed at the creativity of some. I have followed your instructions to implement tabs but I am not getting the result I expect.
When in site settings – exit mode I can see the tabs with the names of my web parts. However, when I exit edit mode I do not see the tabs..my web parts are the same as they were before I attempted to install the Tabs??
I am sure I missed something here but it is not coming to me yet. Any ideas?
Thank you.
July 9, 2009 at 3:33 pm
Tom Dietz
Jim,
I had the same problem and it was because I had a custom web part in the zone that didn’t have any body (it was somewhat of a datasource web part that didn’t display any data).
Since the web part didn’t have a title, the Easy Tabs js was failing to insert the part.
To solve the problem I just moved the custom web part to a different zone and everything started working.
Hope this helps.
Tom
May 21, 2009 at 4:14 pm
cris
Nie tool…
the easy tab for web part works fine in ‘web part pages’ .. but you try to used in the default.aspx… come with a Yellow Triangle in exclamation.
The message details is:
Line: 1749
Char:1
Errorr: ‘ document.getElementByld(…)’ is null or not an object
code: 0
URL: http://www.abc.com/services/……/default.aspx
May 22, 2009 at 12:48 am
Christophe
cris, could you tell me more about your configuration? wss or MOSS? And which type of SharePoint site: team site, workspace, or…?
May 22, 2009 at 2:43 pm
cris
I found the reason… it was the Image link…after remove it .. the tabs start to work
May 22, 2009 at 2:03 am
Christophe’s Easy Tabs at Path to SharePoint « Marc D Anderson’s Blog
[...] SharePoint That Christophe guy over at Path to SharePoint never rests! I just spotted his post on his new Easy Tabs Web Part. I haven’t dug under the covers on it yet, but [...]
May 22, 2009 at 5:06 am
Peter Allen
Christophe,
Beautiful solution. This is a great and easy way to add tabs quickly. I will be adding this to my list of solutions.
Keep up the great work.
May 22, 2009 at 9:23 am
Christophe
Jesus: same reply as for Iain. I kept it simple, ease of use was my design choice.
I have already received a lot of feedback in the past 48 hours, and I plan to propose some variations around this initial version. You’ll find them on my SharePoint site… under a new tab!
May 22, 2009 at 3:06 pm
robin
Another great part for sharepoint that you have created
Thanks!
May 25, 2009 at 1:01 am
Aaron
Extremely impressive!!
May 25, 2009 at 10:21 pm
cris
if you add several ‘Key Performance Indicator List’ web parts do not brings the light indicators..
May 27, 2009 at 3:26 am
Christophe
cris, I don’t see this issue on my examples. And honestly I don’t see why this would happen – the script is not making any change to the content, it just toggles the display.
May 25, 2009 at 10:44 pm
cris
In one default.aspx page you cannot have two easy tab in different Web part zones
May 27, 2009 at 3:23 am
Christophe
Fixed, see the update on the post. Thanks for the feedback!
May 29, 2009 at 7:06 am
Mark
Hi Christophe,
this is a really nice solution, simple but incredibly useful for those overcrowded web part pages.
Just one question: I have a calendar web part with a calendar view that is not placed as the first web part in the web part zone. If i switch from month to week, the page reloads as always, but the active tabs defaults to the first web part. Is there a way to make the script remember the selected tab?
Unfortunately, my programming skills don’t allow me to figure this out myself.
May 29, 2009 at 11:29 am
Christophe
Mark, I have updated the Web Part (and the post) to address the issue you reported.
May 29, 2009 at 6:49 pm
Greg
Hi Christophe,
Would it be possible to have multiple webparts under one tab?
Also, did you consider an ‘undo’ button (to go back from the view with tabs back to the page with all webparts?)
Terrific work as always!
June 2, 2009 at 12:07 pm
Mark
Christophe,
Thank you very much! The updated version works like a charm!
June 3, 2009 at 5:18 am
Brad Saide
Hi Christophe.
The Javascript works great as built. Could I propose something I would love to see as an enhancement:
A way of nominating which wep parts in the current zone are to be rendered as tabs – This could be an “Inclusion array” or an “Exclusion Array” (the exclusion array would probably be shorter).
You might have to use the Webpart titles (as the position might change). You may also need to position the tabs at the same level as the Easy tabs web part, so you could position the tabs say between other web parts (at the moment I think it runs at the top of the Zone).
July 20, 2009 at 5:21 pm
robin
I would also like to see this. It would be great to select which webparts are displayed.
June 3, 2009 at 3:47 pm
Walter
What would it take to put the tabs on the left or right, rather than at the top?
June 5, 2009 at 1:00 am
Ma
Hi Chris! I am a new fan of yours. I found your blogsite when I google on SharePoint Tips and Tricks. I am so very happy to implement all your easy to build SharePoint features. I hope to see more! I am trying to collate all your features in our own team site so others can make implement it in their own team sites. Thanks again.
June 8, 2009 at 5:59 am
Anonymous
This is fantastic. It works well with WebParts in the gallery. Anyway of extending this to include data view web partswwhich pull data from other databases (not Lists)? Thanks and appreciate your sharing this. Best Regards, Sudhi
June 16, 2009 at 4:15 pm
Kelly
I have set up a page with several tabs. I added a new tab but would like to move it so that it appears as the last tab, rather than the first. Any suggestions?
June 16, 2009 at 4:20 pm
Kelly
Never mind – I got it. Will surely have more questions later so thanks in advance!
June 22, 2009 at 3:04 pm
Heidi
Hi am getting the same error as shown on the post (May 21, 2009 at 4:14 pm cris)
My error is on Lin 533 which is the following:
{
while(elem !=null && elem.tagName !=”TABLE”) elem=elem.parentNode;
return elem;
}
Only get this error when adding a Content Editor web part which has a table created within it.
Hope you can help! Think the tabs are great, would be the icing on the cake to get them working with the Content Editor Web Part
Thanks in advance!
June 22, 2009 at 3:25 pm
Heidi
Ah…just found the problem – if you set the web parts to have Chrome=None then you get the fault, they must have at least Chrome=Title Only at the very least on all web parts within the section as the Easy Tabs webpart.
Is it possible to amend the Easy Tabs webpart so that it works when the webparts are set to Chrome=None?
Thanks!
Heidi
June 22, 2009 at 3:30 pm
Heidi
Just noticed it ignores the Title anyway….ignore me, must be having that Monday feeling!
Great webpart
June 22, 2009 at 6:38 pm
Andrew B
Hi Christophe
Thank you for taking the time to help me customize the appearance of Easy Tabs to match my corporate Intranet colors. Easy Tabs is a great solution for minimizing the clutter on our Intranet page.
Your support was great, keep up the good work
Andrew
July 3, 2009 at 9:06 pm
Candice
Hi Andrew
I’m trying to do the same thing. I wonder if you could elaborate a little on what you did.
Thanks,
Candice
June 26, 2009 at 7:10 am
Jason
Hi, say i have 6 views labelled 1-6. I then add the Easy Tabs webpart. I add a second Easy Tabs(biz) webpart and i come out 2 consecutive rows of Tabs both showing the same 6 views on each. I was wondering if i could have 1-3 on the top row and 4-6 on the second row of the tabs?
Thanks again for this great solution!
June 26, 2009 at 11:18 am
Christophe
I have modified the post, hopefully there will be less confusion. The second set of tabs is for another Web Part zone, not to split tabs across two rows in the same zone.
For those who would like two rows, you can start from this post:
http://pathtosharepoint.wordpress.com/2009/04/02/splitting-the-top-navigation-in-two/
July 6, 2009 at 12:51 pm
Tony
Hi.
Brilliant!
I have a small niggle. I’m not getting a closing top border across the webpart. IE right below the tabs. Any idea?
July 7, 2009 at 4:20 pm
Candice
Hi Christophe,
I am trying to edit the look and feel of the tabs, including the font style and color. I would appreciate any help you could give me.
Thanks!
July 7, 2009 at 4:26 pm
Tony
The Tabs point to CSS in the Core.css file. The ones that I amended were ms-tabselected and ms-tabselected. For myself I have assigned another custom CSS file to my master pages. I copied the TAB CSS out of the core.css and pasted them into my custom css file.
I then renamed them as per the examples below. All you then have do do is edit the tabs webpart to point at the new css names.
.sth-tabselected{border-color:#DDDDDD;border-width:1px;border-style:solid;font-weight:bold;position:relative;top:0px;padding-top:7px;padding-bottom:7px;padding-left:10px;padding-right:10px;color:#194C80;background-repeat:repeat-x;background-color:#E8E8E8;margin-right:5px}
.sth-tabinactive{position:relative;top:0px;padding-top:7px;padding-bottom:7px;padding-left:10px;padding-right:10px;color:#194C80;background-color:#F2F2F2;background-repeat:repeat-x;border:solid 1px #DDDDDD;margin-right:5px}
July 14, 2009 at 2:22 pm
Candice
Tony,
Thanks for the help! Can you tell me what you changed in the tabs webpart. I’ve made a few edits to the tabs webpart but it dosen’t seem to pick up the new css file I created.
July 14, 2009 at 2:26 pm
Tony
Using the Two styles above, I simply changed ms-tabselected to sth-tabselected and the same for the other in the tabs code.
July 14, 2009 at 2:39 pm
Tony
Piccy to give you an idea of what is possible.
http://farm3.static.flickr.com/2561/3719939449_31f34c0fb4_o.png
July 14, 2009 at 12:23 pm
VK
Christophe, it’s a great webpart again, Thanks very much
I have created a SPGridView custom webpart which displays items from a Sharepoint Custom List
I have one problem, when I try to add a SPGridView custom webpart in the same zone where the tab webpart exists, the custom webpart is being displayed in all the tabs instead of one particular, help me, Thanks for your efforts
July 15, 2009 at 3:03 pm
David
Christophe, this would be of immense value to me but for the fact that I am seeing exactly the same problem as Jim mentioned in the comments on 21st May at 3:40pm.
Basically your code displays the Tabs correctly in Edit Mode – the page has a single Web Zone with the EasyTab Web Part and two List Web Parts – but the tabs disappear when Edit Mode is exited. I’ve checked in the Web Part Manager that there are no other Web Parts hanging around closed without a Title, as suggested by Tom Dietz in reply to Jim.
Interestingly I have an identical problem with another ‘custom’ Web Part using jQuery, on another page, which is doing exactly the same thing – works perfectly in Edit Mode and ceases to function in normal mode!
I’m wondering if there something wrong with the SharePoint Service itself rather than your code or the jQuery code.
Has anyone else seen this problem and/or have any ideas what could be causing the problem and how it can be fixed?
Regards,
David
July 17, 2009 at 10:27 am
Tony
Hi. Request!
Is it possible that the first click selects and displays the tab and then if you click on the title again, it launches the webparts title url?
No rush. Tomorrow is fine
I wonder if they’ll put something like this in 2010 OOTB? It really does transform Sharepoint.
P.S
Christophe we love you!
July 20, 2009 at 9:29 pm
Darrell
Cool but I can only get it to work with OOTB webparts. Any of my custom webparts that use caml to query lists or sql based webparts don’t show in tabs. What should I do so it works with custom webparts? This would really rock for me if I could get it to work with my custom webparts…
Thanks in advance!!!
July 21, 2009 at 2:30 pm
Tony
Strange mine work fine with Webparts pointing to lists and bdc data created with SPD. You are choosing title and border in the webpart options arn’t you?
July 22, 2009 at 11:10 am
ash
Hi, Request
Easy Tab works with only Main landing page is it right,cos i am trying to implement this with list ,or custom list,easy tabs does not work.
In edit mode it is there,once out of edit mode,it is in hiddne mode.
Any reason for this.
July 23, 2009 at 1:22 pm
Natalie
Thank you Christophe. This is a very useful webpart. I have a page with a very long list of webparts and the tabs extend off the screen to the right. Is it possible to add some code that would wrap the tabs into two or three rows?
I looked at your solution about splitting the top navigation in two but I couldn’t work out how to adapt and insert that code into this webpart.
Can you propose a solution? Thanks.
August 6, 2009 at 2:07 pm
robin
Christophe,
I have used this webpart with great success on a team site but when I tried to use it on a blog site it did not work. Is this a limitation of the webpart?
August 10, 2009 at 10:25 pm
cris
I tried to use the easy tab one in the first left zone side and in the second left zone , and they do not work..
I replaced “12345″ with another number and still not working
Does anybody is facing the same problem?
August 10, 2009 at 10:49 pm
cris
i found the error.. it is workring!!
October 18, 2009 at 7:37 pm
Scott
Hey Cris…what was the error and how did you get it working? I am trying to use it on two zones, but can’t seem to segregate the functionality to each zone.
August 20, 2009 at 1:38 pm
Will266
Outstanding! The best thing is the page dows not reload – no more dead white page as you move between content.
One question – I have added multiple views of a calendar, as well as a List view of the calendar.
All is perfect except on the list view, which has a full toolbar, the ability to access other Views is not there. I want the enduser to be able to view the calendar views, but then have a tab where they can look at a wide variety of List views.
The rest of the Full toolbar is shows (New, Actions, Settings)
Any thoughts?
August 23, 2009 at 4:13 am
Christophe
Will266: I don’t think this issue is specific to the Easy Tabs. List views you insert in a page don’t have the view selector.
August 31, 2009 at 2:30 pm
List/Libraries vs RSS for data feeds | End User SharePoint
[...] with Christophe Humbert, Path to SharePoint, to deliver some live online workshops using his work Easy Tabs and dynamically generated color coding based upon the HTML calculated column. We were discussing [...]
September 1, 2009 at 3:58 pm
B.J.
Thought I would share a slight addition to the EasyTabs. I needed the ability to have a hyperlink to the SP site that would automatically display the appropriate Tab. So I added a couple of lines to the Javascript to accomodate this.
This script modification looks for the Anchor Tag Hash “#” in the url.
If it exists then display that tabby setting the SetCookie function Christophe added.
Here is the javascript code modified.
————————————
/* Easy Tabs for Web Part pages – v 2.0
Christophe Humbert
Christophe@PathToSharePoint.com */
var TabCookie = “TabCookie” + window.location.pathname;
function GetParentTable(elem)
{
while(elem !=null && elem.tagName !=”TABLE”) elem=elem.parentNode;
return elem;
}
function activateTab(selectedtab)
{
if (WPzone.id != “MSOZone”)
{
var allTabs = document.getElementById(“EasyTabs”).getElementsByTagName(“SPAN”);
for (i=0;i<allTabs.length;i++)
{
var WPCellID = allTabs[i].id.replace(/tab/,"MSOZoneCell_");
var TitleID = allTabs[i].id.replace(/tabWebPartWPQ/,"WebPartTitleWPQ");
if (allTabs[i] == selectedtab)
{
allTabs[i].className = "ms-tabselected";
document.getElementById(WPCellID).parentNode.style.display = "";
document.getElementById(TitleID).parentNode.style.display = "none";
}
else
{
allTabs[i].className = "ms-tabinactive";
document.getElementById(WPCellID).parentNode.style.display = "none";
}
}
}
}
function BuildEasyTabs()
{
var TabsTD = document.createElement("TD");
TabsTD.className = "ms-siteactionsmenu";
TabsTD.id = "EasyTabs";
var SeparatorTD = document.createElement("TD");
SeparatorTD.style.height = "5px";
SeparatorTD.className = "ms-pagetitleareaframe";
var theDIVs = WPzone.getElementsByTagName("DIV");
for (i=0;i’-1′)
{
var urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, pageUrl.length).replace(/%20/gi, ” “);
if (urlAnchor.indexOf(‘?’)>’-1′){urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, urlAnchor.indexOf(‘?’));}
}
//End Section added by B.J. Davis
Easy Tabs for Web Part pages – v 2.0
Christophe Humbert
Christophe@PathToSharePoint.com
- This WebPart should be set to Hidden.
– Select Modify Webpart.
– Layout
– Make sure there is a checkmark the Hidden Checkbox.
————————————
September 1, 2009 at 4:04 pm
B.J.
Well it appears that the webpage stripped out some of the code.
I will try to again.
At the Top or Bottom of the Script i added.
—
pageUrl = location.href;
if (pageUrl.indexOf(‘#’)>’-1′)
{
var urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, pageUrl.length).replace(/%20/gi, ” “);
if (urlAnchor.indexOf(‘?’)>’-1′){urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, urlAnchor.indexOf(‘?’));}
}
—
in the Function BuildEasyTabs i added the following after the line TabsTD.appendChild(NewSPAN);
—
if ((NewSPAN.innerHTML==urlAnchor)||((urlAnchor==”) && (i=0))) {SetCookie(TabCookie,NewSPAN.id,”/”)}
—
i hope this comes out correctly.
September 1, 2009 at 4:05 pm
B.J.
Yes it came out correctly this time.
January 11, 2010 at 9:32 pm
Dora
B.J., I am trying to create a hyperlink to a specific tab. I tried adding your Java Script to my Easy Tabs code, but no success. The tabs will not generate at all once I add in the code. I may not be putting it in the right place or leaving something out. Can you assist further?
January 11, 2010 at 10:34 pm
Dora
Here is what part of my code looks like:
NewSPAN.className = “ms-tabinactive”;
NewSPAN.style.height = “18px”;
NewSPAN.id = “tab” + theDIVs[i].id ;
NewSPAN.onclick = function()
{SetCookie(TabCookie,this.id,”/”);activateTab(this);}
TabsTD.appendChild(NewSPAN);
if ((NewSPAN.innerHTML==urlAnchor)||((urlAnchor==”) && (i=0))) {SetCookie(TabCookie,NewSPAN.id,”/”)}
}
}
WPzone.insertRow(0);
WPzone.rows[0].appendChild(SeparatorTD);
WPzone.insertRow(0);
WPzone.rows[0].appendChild(TabsTD);
Does this look correct? I wasn’t sure whether to add your line before or after the brackets but tried several ways.
When I remove the new code (below) the tabs work fine
if ((NewSPAN.innerHTML==urlAnchor)||((urlAnchor==”) && (i=0))) {SetCookie(TabCookie,NewSPAN.id,”/”)}
Thanks for your help. The ability to set a link to a specific tab is very beneficial.
February 24, 2010 at 9:13 pm
Jeannie
I also did as you wrote, and my tabs do not generate, as well. Can anyone help? I would like to have a specific tab show up from a hyperlink..
September 1, 2009 at 4:08 pm
B.J.
What this does is allow you to use a hyperlink to view the tab.
example.
if you have 3 Tabs the url would be
1. Welcome – http://localhost/default.aspx#Welcome
2. Calendar – http://localhost/default.aspx#Calendar
3. Meeting Notes – http://localhost/default.aspx#Meeting%20Notes
btw – The url is case sensitive
September 11, 2009 at 12:32 pm
Nancy
I LOVE this but can’t use CQWP or Table of Contents Web parts with it- for some reason, these web part types “break” the Easy Tabs.
I just get regular web parts broken out on the page whenever one of these is in the zone where I have the Easy Tabs.
Has anyone else experienced this? Is there a fix?
September 14, 2009 at 12:23 pm
larry
Hey Christophe,
I am not sure if I missed something. I implemented this script. It built the tabs perfectly. After i add all the webparts I realized there were too many. I was trying to figure out how to get the second row. I added the easytabs a second time and updated the ID, b ut that just duplicated what I already had. what am I missing to get the one set of webparts to display in 2 rows?
thanks
September 20, 2009 at 12:43 pm
Christophe
Larry, as precised in the post, the second script is for creating a tabs row in another Web Part zone, not a second row in the same zone.
September 23, 2009 at 2:50 pm
BRuiz
Christophe, The best service made to me by Google was leading me to Paths…
EasyTabs is working well for me, and am ready to expand my use, but I am becoming sensitive to features and version… I note that you have posted the new EasyTabs Customization Guide. In both the title of the guide, and on page 11, you reference EasyTabs “v3.” (“… The Easy Tabs won’t find the title and will ignore the Web Part (new in v3).”)
The version of the two downloads are “2.0.” Will there be a “v3″ coming?
R’grds – Ben.
P.S.: Have adopted most of your Calendar toolbox, folks think I am a hero, I think you are a hero!
September 24, 2009 at 12:31 pm
Christophe
Ben – v3 is not public, it is a version I developed for the participants in the endusersharepoint.com workshops. I’ll remove the guide to avoid any confusion.
September 24, 2009 at 1:31 pm
Eric
Christophe;
Not that it hasn’t been said already, but this is a huge contribution so thank you! Like many of the posters I have a fairly urgent need to split the tabs for a single web part zone into two (or more) rows and I missed your session on EUSP. I tried to follow your post on splitting the tab bar but I’ve not worked it out successfully.
If you don’t have another session scheduled on EUSP soon then is there any chance that you could elaborate here on the methods used to break the tabs into a specified number of rows? Thanks again!
-Eric
September 30, 2009 at 1:19 pm
Kelly
Hi Christophe,
Thanks so much for an excellent webpart. I’m almost exclusively using data view web parts on my site collection. Is there any way to use the easy tabs with the data view web parts?
As someone else similarly noted above, when the easy tabs web part is added to a web part zone, the tabs are visible in the edit mode, but not in use mode. I’m guessing this has something to do with the data view web parts.
Thanks, Kelly
October 11, 2009 at 1:55 pm
Christophe
Kelly, the Easy Tabs should work with DVWPs. See if this post helps.
October 7, 2009 at 12:40 am
Chris Howell
Christophe,
Once again, great work and well liked.
Would it be possible to reinstate the EasyTabs Customization Guide. Understand V3 is restricted to EUSP; would like to userstand V2 and the options to modify that.
Cheers,
Chris
October 11, 2009 at 1:45 pm
Christophe
Chris, I wrote the customixzation guide for v3, which is based on jQuery and completely different from v2. It wouldn’t help at all for v2.
October 16, 2009 at 4:36 pm
Bill
Is there more information on how to put 2 rows of tabs (split the rows)?
Thanks.
October 17, 2009 at 3:13 am
Christophe
I just need to find the time to put together a post describing some additional features for the Easy Tabs. It should be on my blog this month.
October 18, 2009 at 4:08 am
Ramesh Amaruru
How can I build tab for each view of a “Task” list?
October 21, 2009 at 11:11 am
Christophe
Create a page, add each view to the page, include the Easy Tabs, and you’re done.
October 21, 2009 at 1:57 pm
ramesh
Thanks for your reply. It works if add a new webpart page and task views to it. But if I try to edit the default tasks aspx page(AllItems.aspx) and add views as webparts, it doesn’t work. Am I missing something.. Your help is really appreciated.
October 20, 2009 at 5:53 pm
Tracey Nolte
As part of my additional styling elements for a custom CSS, I modifed a few of the tags below and it helped me craft an improved customized tab appearance to match my custom masterpage. However, I can’t figure out what is forcing the spacing between the tabs and the tab body. Any hints?
>>> This puts a box around the web parts with a thin grey line
———————————————————————————
.ms-WPBorder,.ms-WPBorderBorderOnly {
border-width:1px;
border-style:solid;
border-color:#cccccc;
padding:10px 12px 12px 12px;
}
.ms-WPBorder
{
border-top-width:0px;
———————————————————————————-
>>> This formats the tabs
———————————————————————————-
.ms-tabinactive
{
font-weight:normal;
position:relative;
top:0px;
padding-top:3px;
padding-bottom:3px;
padding-left:10px;
padding-right:10px;
border-bottom:none;
background-color:#cccccc;
background-image:url(“>>insert your tab bg image here<<");
border:solid 1px #cccccc;
color:#666666;
}
.ms-tabinactive a:link
{
color: #666666;
text-decoration:none;
}
.ms-tabinactive a:hover
{
color: #000000;
text-decoration:none;
}
.ms-tabinactive a:visited
{
color:#666666;
text-decoration:none;
}
——————————————————————-
October 20, 2009 at 6:02 pm
Tracey Nolte
Here are links to what it looks like, I can’t find how to minimize this spacing between the tabs and body.
http://www.traceynolte.com/images/tabs.png
http://www.traceynolte.com/images/tabs2.png
Thanks!
October 21, 2009 at 2:08 pm
Christophe
@ramesh: the Easy Tabs will only work on the default (home) page and custom pages you create. The reason: on a list page, the Web Part titles are not displayed, so the Easy Tabs have nothing to build from.
October 21, 2009 at 2:22 pm
ramesh
Thanks for your quick reply. I added a custom page and made it look like real page by remove all placeholder tags. Really nice..
Thanks much
October 23, 2009 at 2:27 pm
david milliken
Hello Christophe, I figured out what I did wrong from my earlier post – I now have downloaded the EasyTabs WP and have it placed on a Calendar that has two CEWP’s. I’m experiencing the same issue as others have – I see the tabs in “Edit” – not in “View” and I have the “Appearance” chrome set at Title on each one. The appearance “Chrome” on the EasyTabs WP is also set at Title. I’ve also got the EasyTabs WP hidden. Did I miss something from the other’s posts? – also, the EasyTabs WP created a “New Default” view and that’s the one I’m working from.
Thank you for your time and assistance.
November 5, 2009 at 10:58 pm
Kris
Christophe,
Ok the easy tabs works great! Been following you for some time here and on the MSDN forums!
My question is this… I have articles that are say given category names.
Blogs : Arcade Games, Console Games, PC Games
I want the Blogs to roll out to show the three above. Like here in this article you wrote:
http://pathtosharepoint.wordpress.com/2009/01/15/a-drop-down-menu-the-sharepoint-way/
And still have each WebPart containing the rollouts to have a TAB across the top.
I know I know odd… but I thought it would be nifty for a clean organizational approach. E-mail me or Post here!
Thanks again!
November 5, 2009 at 11:07 pm
Kris
I forgot my goal is that the drop down menu would be generated from a list of documents.
Each tabbed area would have these documents that area separated by each field…
November 10, 2009 at 10:54 pm
Kris
Hey! Qucik question…. I noticed yoru rounded corners article as I was reading… could you round the corners of yoru tabs? Is that possible?
November 11, 2009 at 12:47 am
Christophe
Kris: sure you can. For example it is built in v3 of the Easy Tabs which was given to the workshop participants.
The jQuery corner plugin is easy to use, just apply it to the tab row.
November 11, 2009 at 2:58 pm
Kris
Sounds like I should get in on a workshop soon! Well one more question. I imported a webpart that is a summary link list that I created. When I add it to the webpart zone that contains the tabs the tabs do not work??? What gives?
November 11, 2009 at 3:03 pm
Nancy
Kris- I had the same issue.
November 20, 2009 at 6:56 pm
Beth
I tried to use this and it’s not working. I see the Easy Tabs web part and put it in but and I see the tabs when I’m in edit mode but nothing happens when I publish the page.
November 22, 2009 at 8:00 am
Christophe
Beth, see if this helps:
http://pathtosharepoint.wordpress.com/2009/10/05/faq-how-comes-my-easy-tabs-display-in-edit-mode-but-not-in-view-mode/
November 24, 2009 at 10:59 pm
Vidette
This is awesome. Love it!
December 2, 2009 at 11:00 pm
Leo
Hi Christ
December 2, 2009 at 11:03 pm
Leo
I am new to the SharePoint world and hoping to get some guidance from you. I’ve downloaded the easytab webpart but when I added it using the Site Action>Edit Page> Add webpart. I can only see one tab. I can’t see the rest. Let me know what I missed. Thanks
December 2, 2009 at 11:38 pm
Leo
I managed to create multiple tabs after few tries but now my problem is that my Title tab were shown twice. Help!.. Thanks
December 2, 2009 at 11:51 pm
Leo
Great! It’s now working!
December 3, 2009 at 6:46 pm
Chad
Great idea for simplifying navigation.
I may be interested in attending one of your sessions, however I have a fairly immediate need to exclude web parts from the tabs. Can you provide me any info on how to go about this? Glancing over the existing java script nothing looks obvious.
Thanks.
December 9, 2009 at 11:35 am
Gil
I’d like to have 2 webparts in one tab. Has anyone been able to get easytabs to work this way ?
Any help greatly appreciated
December 9, 2009 at 8:24 pm
imdem412
Christophe:
I love the EasyTabs webpart. It has solved a lot of problems, but I have one question. If I have the tabs set up and I have tabbed my DVWPs, I wuold like to filter another DVWP (not in the same WP Zone) based on which tab is selected.
If I have a list that has items relevant to tabs 1, 2 and 3 and when I click tab 1, how can I filter that list that only has items relevant to tab1?
I think another way to ask my question is how do I pass the selected tab name to the DVWP as a filter element?
December 10, 2009 at 7:06 am
Christophe
There are various ways to do this. I’d suggest hat you take a look at JavaScript/jQuery solutions for dynamic filtering of tables.
One thing to keep in mind is that clicking on a tab doesn’t refresh the page (that’s the purpose of the Easy Tabs). So solutions that involve querystrings or Web Part connections won’t work well here.
December 10, 2009 at 6:08 pm
Anonymous
So when I look in the code, and I see the line ‘activatetab(ActiveTab), there is no way I can capture the value of ‘active tab’ and pass that to a filter on another DVWP?
December 11, 2009 at 1:54 am
Christophe
The default SharePoint filters trigger a page refresh.
If you’re not ok with the page refresh, then you’re correct, you cannot pass the filter. You need to build your own dynamic client side filter.
If you’re ok with the page refresh, then there’s no reason to use the Easy Tabs.
March 1, 2010 at 10:32 pm
Bill
We are using Easy Tabs on our site and clilcking on a tab does, indeed, cause a page refresh. The WebParts being “tabbed” are all Content Query WebParts but we do not want to refresh when clicking on the page.
Do you know why this might be hapenning?
December 14, 2009 at 4:24 pm
Ben
This is a great web part – well done!
is their anyway of deciding which webparts get tabbed in the same zone? For example you may want generic content editor webpart to show regardless of tab slected. Then you could choose say web part 2,3,4 to be included in the tab.
any ideas Chris?
thanks in advance for your hard work and for sharing it!!
January 12, 2010 at 2:13 pm
Ross
Hi Chris,
Great work on the easy tabs, I have vistied your site over the past 2 years for ideas for a work site that I use. I have recently implemented your easy tabs for an excel dashboard I created.
In this dashboard you are able to drill down by clicking on a project to view certian information. The only problem I have is you have to hit the back button to refresh the “Projects tab” in order to go back to the chart. Is there a quick code in Java (sorry not a programmer) when you click on a tab it goes back to the main webpart?
Thanks in advance.
Ross
January 28, 2010 at 12:06 pm
Christophe
Ross, it’s hard to tell without knowing how you built the drill-down effect.
Instead of a page change, have you considered using a tooltip? Then the chart never disappears.
January 19, 2010 at 10:30 pm
imdem412
Chris:
Question – I see in some of the blog entries here, about the 2nd row of tabs to avoid the horizontal scroll that people had questions about that – I did not see any replies. Do you have some insight to how to get two rows of tabs (essentially a word-wrap of tabs)? This would be very helpful in some cases in my project.
Thanks!
January 28, 2010 at 12:09 pm
Christophe
This was addressed in another post:
http://pathtosharepoint.wordpress.com/2009/11/22/easy-tabs-multiple-tab-rows/
January 27, 2010 at 8:50 pm
Paul Suroteguh
Hi Christophe, excellent work on EasyTabs web part. One question, do you have inputs as how to specify or groups multiple webparts (i.e. Announcements) into a single tab? Thanks!!
January 28, 2010 at 12:15 pm
Christophe
The script is built to automatically generate one tab per Web Part – that’s what makes it easy. To do what you want, you’d need to specify manually which tab goes with which column. See for example bitsofsharepoint.com for such solutions.
February 3, 2010 at 2:59 pm
Phil
Seriously, awesome stuff. Thanks!
February 4, 2010 at 6:09 pm
g3
Hi,
Really cool stuff! I had a question is it possible to have a forms on each of these tabs..and have a separate submit button for each forms.
I am trying to create a bunch of forms where users presss Next..button for navigation.
February 18, 2010 at 5:23 am
Sean Wallbridge
Great stuff dude. I was showing this to a peer tonight (Callahan) and she asked whether it worked, ready to roll in SharePoint 2010. So, we gave it a shot and alas, while there were no errors or pages freaking out, it also didn’t produce any tabs.
I’m sure you are busy, but I’d love to see this continue to work in SP2010 and wanted to give you a heads up, before it is released (2010) to the public.
February 20, 2010 at 7:29 am
Christophe
Thanks Sean. Several minor tweaks are required to make the Easy Tabs work on SP2010. I am working on this, but I’ll need the final SP release to validate it. I am also working on several other improvements:
http://www.pathtosharepoint.com/Lists/ToDoList/AllItems.aspx
February 23, 2010 at 5:36 pm
Sasha
Any recommendations on getting this to work on dispform.aspx page? Thanks!
March 3, 2010 at 8:26 pm
Christophe
Hello, Christophe
First of all Congratulations for Easy Tabs!!!
I have a quick newbie question: is there any possibility to add two or more webparts in the same TAB ?
I have removed in the second web part “Chrome Type” = “none” that I want to keep after my first web par in the same page, but its not working.
Please, let me know
Thank you, Fabio Istvan
March 5, 2010 at 12:23 pm
Christophe
In the current and the upcoming 4.0 version, you can only have one Web Part per tab.
I have included this in my to-do list and hopefully will have it in v 4.1:
http://www.pathtosharepoint.com/Lists/ToDoList/AllItems.aspx
March 5, 2010 at 12:31 pm
Tony
One feature I’d love added is this. Click once to select the tab and view the webpart. The 2nd click on the ‘Live’ tab would then take you a specified url.
Also what may be nice would be pop up text you can add to a tab that would explain it’s contents.
Regarding V4 I noticed you have ‘Lite’ against it. Is there going to be a ‘Pro’ version we can purchase with extra features?
March 7, 2010 at 11:07 pm
BGM
Hello! Easy Tab is great! I have this problem, however: I am displaying a calendar in list view on my page, which fit nicely into Easy Tabs; but before I could click on the title to jump to the calendar. Now, since Easy Tabs uses the title to display the list in the tab, then it doesn’t hyperlink (which is right), but where do I stick my hyperlink? I would like to add a CQWP with some links to appear above Easy Tabs, but Easy Tabs sucks up ALL web parts into the tabs! I want to have the links always visible above the tab bar. What can I do?
April 23, 2010 at 7:22 pm
Addis Abebayehu
Excellent work.!!
May 3, 2010 at 9:20 pm
Sandra
Christophe,
I would like to try this web part but I’m running into a problem. I selected the options and imported the file into the Gallery. I get the following message:
“The file you imported is not valid. Verify that the file is a Web Part description file (*.webpart or *.dwp) and that it contains well-formed XML. ”
I apologize if this is due to a rookie mistake
May 7, 2010 at 8:10 am
Christophe
Make sure you are using the correct file with the correct extension. Also check out recent posts for the latest version.
May 10, 2010 at 5:55 pm
Alex
Hey Chris! Great work! One question though. I’m using this tab to display document libraries. When a user clicks on the sub folder, it remains in that subfolder until the whole page is reloaded. Is there anyway to have this script setup so when a user exits a tab it will bring them back to the root of the previous tab?
For example.
If I clicked on a subfolder in tab 1 – the page refreshes and shows the sub folder.
If I go into tab 2, then back to tab 1 – it’s still in that subfolder. The only way to leave the subfolder would be to click “back” on the browser.
If this is not possible, is there a way I can show my document library hierarchy in the document library?
Thanks!
May 10, 2010 at 8:48 pm
alex
Could somebody also comment on how to make B.J’s version of the script work? I would really like to be able to add anchor links to these tabs, thanks!
May 13, 2010 at 9:58 am
Roger
Wonderful WP.. solved a lot of problems with our site.
Many Many thanks for producing it..
May 17, 2010 at 4:03 pm
B.J.
Here is the whole code.
/* Easy Tabs for Web Part pages – v 2.0
Christophe Humbert
Christophe@PathToSharePoint.com */
var TabCookie = “TabCookie” + window.location.pathname;
function GetParentTable(elem)
{
while(elem !=null && elem.tagName !=”TABLE”) elem=elem.parentNode;
return elem;
}
function activateTab(selectedtab)
{
if (WPzone.id != “MSOZone”)
{
var allTabs = document.getElementById(“EasyTabs”).getElementsByTagName(“SPAN”);
for (i=0;i<allTabs.length;i++)
{
var WPCellID = allTabs[i].id.replace(/tab/,"MSOZoneCell_");
var TitleID = allTabs[i].id.replace(/tabWebPartWPQ/,"WebPartTitleWPQ");
if (allTabs[i] == selectedtab)
{
allTabs[i].className = "ms-tabselected";
document.getElementById(WPCellID).parentNode.style.display = "";
document.getElementById(TitleID).parentNode.style.display = "none";
}
else
{
allTabs[i].className = "ms-tabinactive";
document.getElementById(WPCellID).parentNode.style.display = "none";
}
}
}
}
function BuildEasyTabs()
{
var TabsTD = document.createElement("TD");
TabsTD.className = "ms-siteactionsmenu";
TabsTD.id = "EasyTabs";
var SeparatorTD = document.createElement("TD");
SeparatorTD.style.height = "5px";
SeparatorTD.className = "ms-pagetitleareaframe";
var theDIVs = WPzone.getElementsByTagName("DIV");
for (i=0;i’-1′)
{
var urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, pageUrl.length).replace(/%20/gi, ” “);
if (urlAnchor.indexOf(‘?’)>’-1′){urlAnchor = pageUrl.substr(pageUrl.indexOf(‘#’)+1, urlAnchor.indexOf(‘?’));}
}
//End Section added by B.J. Davis
Easy Tabs for Web Part pages – v 2.0
Christophe Humbert
Christophe@PathToSharePoint.com
- This WebPart should be set to Hidden.
- Select Modify Webpart.
- Layout
- Check the Hidden Checkbox.
May 19, 2010 at 5:19 pm
alex
hey b.j.
could you please email me the code – alex.funari@comcast.net?
for some reason this isn’t working, it looks like some things dissapear after you post them.
Thanks!
July 5, 2010 at 1:56 am
lordred
Hi B.J.
I’ve tried your script but it only breaks my tabs can you explain the script that you’ve added? and what code you have removed from the original. thanks.
Thank you.
June 1, 2010 at 7:30 pm
Dave
I am trying to get the Easy Tab to work in a Publishing page. I see the tabs created when I add the Web part, but when I exit edit view I do not see the tabs. I don’t understand why there is a difference. Has anyone seen this problem before?
Thanks
–
Dave
June 1, 2010 at 7:51 pm
Dave
I figured out what was going on. I see where you are capturing the TitleID.
Should have taken another look at the code.
Thanks
June 9, 2010 at 8:13 pm
dridma
That’s great! Thanks for sharing!!!
July 1, 2010 at 9:42 am
lordred
how can I be able to display another Tab by clicking on the current page object let say hyperlink or area map of that tab that I’ve wanted to display?without clicking the tab.
July 1, 2010 at 3:15 pm
KarenC
Can this be modified to use on a list item or even document properties?
I have a list with a large number of columns and would like to be able to use tabs to make the list form easier to use.
July 20, 2010 at 12:52 am
Toby
Any plans to make this for Sharepoint 2010?
August 30, 2010 at 7:30 pm
Mark
Christophe, I am try to see if Easy Tabs web part supports query strings. I only saw one other comment about this in the blog posts above.
I am interested to see if there is way to set the active tab via URL so that when the page with Easy Tabs opens, such that you can specify the Active tab or tab with focus.
thank you, mark
August 31, 2010 at 1:24 am
Christophe
Mark, there is no easy way to do this, at least not without dropping another functionality.
See for example this recent thread:
http://www.endusersharepoint.com/STP/viewtopic.php?f=8&t=1524
August 31, 2010 at 2:06 pm
Mark
Thanks a lot, Christophe!