Custom Dotnetnuke (DNN) Skin Design

Web/Site search options - how to turn them on and off in your XML file

Location: DotNetNuke
 

The search functionality of DNN has recently gone a good upgrade, which has seen it include the ability to search both the local site and the entire web.

Being a skin designer this has posed slight constraints on my previous designs as it requires additional space for two new form controls. This additional space has pushed some of my previous designs to breaking point and I've therefore been on the hunt for a method of turning this functionality off, rather than simply hiding it with css.

Below is the required code, to be placed in you skin XML file, for turning the display of these options off, as default the search will still cover the local site so there's no need to worry about having them not show as long as you don't need the ability for web search.

<Object>
 <Token>[SEARCH]</Token>
  <Settings>
   <Setting>
    <Name>showWeb</Name>
    <Value>False</Value>
   </Setting>
   <Setting>
    <Name>ShowSite</Name>
    <Value>False</Value>
   </Setting>
  </Settings>
</Object>

Re: Web/Site search options - how to turn them on and off in your XML file
By Dave on 10/28/2007 1:15 PM
I am new to DNN and was wondering if the skin XML file is updated, do I need to compile the code?
Re: Web/Site search options - how to turn them on and off in your XML file
By host on 10/28/2007 1:18 PM
What you need to do is add this to the XML file within the skin upload files. zip. Upload the skin as a skin upload and DNN will parse the new information, replacing the old skin with the new settings.
Your name:
Title:
Comment:
Add Comment    Cancel  

Rhoek.com's design blog focuses on web design and dotnetnuke skin design.

We've been designing and developing websites and custom/template dotnetnuke skins since 2003 and have experience in X/HTML, CSS, javascript, DNN skinning, XML, XSLT, accessibility, usability, email design and building, and Search Engine Optimisation.

Login
08 September 2008