Search in master page

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
2/11/2013 10:23:49 AM
Gravatar
Total Posts 118

Search in master page

Hi, I want to include the search into the layout.master page, so it is always present and doesn't need to be added to any pages. 

I've taken what I think should work and added it, but the button just refreshes the page. Any ideas where I'm going wrong?

When I add the site search module to the page, both the layout.master search and sitesearch feature work, so I'm guessing i'm not referencing something correctly?

this is what I've included in my Layout.master file. 

<div id="ctl00_rightContent_ctl00_pnlOuterBody" class="outerbody">

<div id="ctl00_rightContent_ctl00_Search_pnlS" class="wrapsearchinput">

<div id="ctl00_rightContent_ctl00_Search_pnlSearch" class="searchpanel art-search" onkeypress="javascript:return 

WebForm_FireDefaultButton(event, 'ctl00_rightContent_ctl00_Search_btnSearch')" style="display:inline;">
    

<input onfocus="javascript:watermarkEnter(this, 'enter search terms');" onblur="javascript:watermarkLeave(this, 'enter search terms');" 

name="ctl00$rightContent$ctl00$Search$txtSearch" type="text" id="ctl00_rightContent_ctl00_Search_txtSearch" title="Site Search" 

class="watermarktextbox" style="">
<input type="submit" name="ctl00$rightContent$ctl00$Search$btnSearch" value="Search" id="ctl00_rightContent_ctl00_Search_btnSearch">


</div></div></div>

2/11/2013 10:38:56 AM
Gravatar
Total Posts 18439

Re: Search in master page

We have a built in control for that. Have a look at the layout.master in the /Data/skins/art41-greengold skin in the latest version. That skin has the search input, you can copy it from there.

Hope that helps,

Joe

2/19/2013 6:12:22 AM
Gravatar
Total Posts 118

Re: Search in master page

That's great, thanks. 

You must sign in to post in the forums. This thread is closed to new posts.