Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnnSearch on 4.5.2dnnSearch on 4.5.2
Previous
 
Next
New Post
5/29/2007 5:14 PM
 

I am a bit embarrassed about this... I added the new search options but they were supposed to be disabled by default...

The new options for Web and Site were added so that it is simple for users to include the standard "search the web" or "search my site" functionality which is available on many websites. It was implemented in a way which is completely extensible:

1. To enable/disable the options in the skin object, you simply set the public attributes in your skin ( like any other skin object ):

<dnn:SEARCH runat="server" id="dnnSEARCH" showWeb="False" showSite="False" />

or for HTML skins, in the skin file:

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

Note that you can set one option to True and the Other to False for even more customization. In addition there is another attribute:

UseWebForSite="True"

This option can be used if you want to leverage a search engine like Google for your internal site search - rather than using the native DNN search engine. In this case the results for a Site search will return publicly accessible results for only your website from a remote search engine.

2. You could also set them in the source code as per John's suggestion above - however since this is core code it means that your change may get overwritten on the next upgrade.

3. If you actually want the Site and Web options in your site, you also have the ability to configure them even more in the related RESX file ( Search.ascx.resx ) which is accessible using the DNN Language Editor:

    <data name="URL.Text">
        <value>http://www.google.com/custom?hl=en&amp;client=pub-9770992166002654&amp;sitesearch=[DOMAIN]&amp;q=[TEXT]</value>
    </data>

In this case the Web search is done using Google and it is passing an affiliate ClientID, optional SiteSearch domain name, and the search query. Any or all of the values in this resouce string can be modified to suit your needs. Note that by default, the DotNetNuke project ClientID is included in the search query, as it is an inobtrusive way for us to generate a bit advertising revenue to help offset the costs of provifing community programs and managing the open source project.

You can even support other search engines simply... for example for MSN you could specify:

    <data name="URL.Text">
        <value>http://search.msn.com/results.aspx?q=[TEXT]</value>
    </data>

This enhancement was inspired by Steve Orr's recent article on Gadgets in AspNetPro magazine.


My comments are my own and are offered WITHOUT PREJUDICE

Shaun Walker
http://www.siliqon.com
 
New Post
5/29/2007 5:23 PM
 

The idea is a great one... the only bad part about it is that it was turned on by default.  We'll let this one slide... ha!

The DNN community continues to be an inspiration to learning developers like myself, so keep it up, and sometime soon I'll be giving back to add value to the platform.

When small OOBLES (i think i just coined a phrase) like this search thing are revealed, we all learn.

Thanks for everything.  The future is bright!


Chad Voller -- MCP, DNN Aficionado
Leapwise Media
View my View Chad Voller's profile on LinkedIn
 
New Post
5/29/2007 5:34 PM
 

Thanks for being understanding :)

On a side note, we are going to get serious about rolling out a community Wiki soon so that great bits of documentation like the item  above can be collected somewhere centrally. This would be a great benefit to the community and would eliminate the need to click through to remote websites for simple anwsers...


My comments are my own and are offered WITHOUT PREJUDICE

Shaun Walker
http://www.siliqon.com
 
New Post
5/29/2007 5:51 PM
 

Right, we wouldn't want "simple answers" to be anywhere other than right here.


DotNetNuke Modules from Snapsis.com
 
New Post
5/29/2007 7:14 PM
 

Maybe it's just that some people start to wonder why every post lately seems to be a billboard for your website.  Considering that most people come to DotNetNuke.com to find out about DNN, it just sort of seems natural for people to expect to find simple answers here, rather than being forced to go to yet another site to find out information that could just as easily have been posted here.  Forwarding people from one forum on DotNetNuke.com to the forum on your site doesn't seem to really benefit anyone in the community except you.


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnnSearch on 4.5.2dnnSearch on 4.5.2


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out