Add searchbox to DNN header


Author Message
Mawa

Posted: 9/23/2010
Quote message 


Is there a way to add a searchbox to the DNN header generated in Artisteer?
I cannot do it from the software but maybe there is a way to do it in code.

any suggestions welcome.

 
Tim

Posted: 2/28/2011
Quote message 

has anyone been able to do this?
 
Jeff

Posted: 3/3/2011
Quote message 

You need to edit the ASCX file to do this. In the ASCX file you need to find the <div class="art-header-jpeg"> </div> section (or PNG if that's your header image type) and add the DNN search function:

<div class="search_style">
<div class="search_bg">
<dnn:SEARCH runat="server" id="dnnSEARCH" CssClass="ServerSkinWidget" UseDropDownList="true" Submit="<img src=&quot;images/search.gif&quot; border=&quot;0&quot; alt=&quot;Search&quot; /&gt;" />
</div>
</div>

You also need to add the directive at the top of the page:

<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>

You then style the search object with CSS to position it, etc.

Jeff
 
Veronica

Posted: 4/13/2011
Quote message 

"then style the search objec with CSS to position it"

How???? (new and lost)

Veronica