A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.
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>
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
That's great, thanks.