Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  dnnSearch on 4.5.2
Previous Previous
 
Next Next
New Post 5/29/2007 3:14 PM
User is offline Shaun Walker
1458 posts
www.dotnetnuke.com
6th Ranked










Re: dnnSearch on 4.5.2 

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
President / Chief Architect
DotNetNuke Corporation
 
New Post 5/29/2007 3:23 PM
User is offline vollerworld
207 posts
www.vollersolutions.com
9th Ranked


Re: dnnSearch on 4.5.2 

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
http://www.vollersolutions.com
Get the latest DNN Modules and Skins
View my View Chad Voller's profile on LinkedIn
I host my sites at 3Essentials
 
New Post 5/29/2007 3:34 PM
User is offline Shaun Walker
1458 posts
www.dotnetnuke.com
6th Ranked










Re: dnnSearch on 4.5.2 

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
President / Chief Architect
DotNetNuke Corporation
 
New Post 5/29/2007 3:51 PM
User is offline John Mitchell
3911 posts
www.snapsis.com
4th Ranked




Re: dnnSearch on 4.5.2 

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


DotNetNuke Modules from Snapsis.com
 
New Post 5/29/2007 5:14 PM
User is offline Joe Brinkman
1370 posts
www.dotnetnukecorp.com
6th Ranked






Re: dnnSearch on 4.5.2 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  dnnSearch 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.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP