HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...dnnSearch on 4.5.2dnnSearch on 4.5.2
Previous
 
Next
New Post
5/29/2007 2: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.


Shaun Walker
Co-Founder & CTO
DotNetNuke Corporation
 
New Post
5/29/2007 2: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 2: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...


Shaun Walker
Co-Founder & CTO
DotNetNuke Corporation
 
New Post
5/29/2007 2: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 4: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
DotNetNuke Corp.

The Accidental Geek - Joe Brinkman

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...dnnSearch on 4.5.2dnnSearch on 4.5.2


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
DotNetNuke Store

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Telerik JustCode Free
Exact Target Exec Alert
PowerDNN

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.