Aarebrot.net

Frodes website about Sharepoint and other stuff...

  • Increase font size
  • Default font size
  • Decrease font size

BlueBand.master: How to fix that broken search button

E-mail Print
User Rating: / 2
PoorBest 

How to fix the search button hover state on BlueBand.master

Have you ever noticed that if you hover your mouse over the search button on the default BlueBand.master, it doesn't behave the way you'd expect it to? This is caused by a missing tag in the masterpage, and is quite easy to fix if you know what to do. Lucky for you, I've got the scoop.

hoverstate.png
What the?

So what's causing this behaviour? Actually, it's just a missing tag in the masterpage. Fire up your favorite text editor, and change the following tag:

  1. <div class="search">
  2.     <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
  3.         <SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown=""
  4.         TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100"
  5.         GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
  6.         GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>"
  7.         UseSiteDefaults="true" DropDownMode = "HideScopeDD"
  8.         SuppressWebPartChrome="true" runat="server"/>
  9.     </asp:ContentPlaceHolder>
  10. </div>

To the following:

  1. <div class="search">
  2.     <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
  3.         <SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown=""
  4.         TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100"
  5.         GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
  6.         GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>"
  7.         GoImageActiveUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
  8.         GoImageActiveUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>"
  9.         UseSiteDefaults="true" DropDownMode = "HideScopeDD"
  10.         SuppressWebPartChrome="true" runat="server"/>
  11.     </asp:ContentPlaceHolder>
  12. </div>

Notice the GoImageActiveUrl there? That's the missing tag(s). Now whoope-doo, you should get the regular arrow also when you hover the image.

normal.png
Wicked awesome!

Last Updated on Monday, 10 November 2008 09:14  
Comments (8)
WebPart ID
8 Monday, 25 January 2010 13:27
Frode Aarebrot
Anthony & Hopkins:
Are you guys editing the out of the box BlueBand.master masterpage? I don't have a WebPart or WebPartId property in my page.

If you're editing another page, the code may not look identical. You can apply this to any master page where it's missing, but instead of copying and pasting my "after" code, just add the two missing properties (GoImageActiveUrl and GoImageActiveUrlRTL).
What is the webpart ID for?
7 Thursday, 21 January 2010 09:05
Hopkins
@@@@ as asked by Anthony


WebPart="true" __WebPartId="{2D4945B7-97B0-45CE-B330-9D315A8BF5DE}"
Awesome!
6 Saturday, 24 October 2009 10:48
Oakkar
You've saved me some pain.
Missing Web Part Properties?
5 Wednesday, 12 August 2009 10:44
Anthony
In my master page the SearchBoxEx control also has "WebPart="true" __WebPartId="{2D4945B7-97B0-45CE-B330-9D315A8BF5DE}"

Where did this go?
HOOOOOORAAAAAYYYYYYYYY!
4 Tuesday, 04 August 2009 12:43
Kyle
Thank you so much!! I don't feel like I'm having a seizure everytime I try and search our site now.
broken link
3 Friday, 24 July 2009 05:28
Gideon
Thanks a trillion x trillion for making my day and most of all it is friday.

KEEP THE GOOD WORK
thanks
2 Thursday, 05 February 2009 13:34
chip
thanks. I was about to do something the server I shouldn't do.
thanks
1 Friday, 26 September 2008 09:18
Vishal
Thanks buddy

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification: