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

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Search ImprovementsSearch Improvements
Previous
 
Next
New Post
7/14/2007 2:09 AM
 

Joe,

can you explain what is the "improvement" in your code about? If it's general purpose and has value we can include it in next version.


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
7/14/2007 8:35 AM
 

OK --- here is where the actual change is:

 

  AND (sw.Word like '%' + @Word + '%')

    AND (t.IsDeleted = 0)

    AND (t.DisableLink = 0)

    AND (m.IsDeleted = 0)

    AND (t.PortalID = @PortalID)

    OR (m.ModuleTitle like '%' + @Word + '%')

 

-----------

 

The bolded lines are the changes

 

first line is how the search term is matched. instead of exact, it does a like. we found that a lot of clients would complain that searching "map", for instance, would not return pages which had the word "maps" on them. or "auto" won't give you "automobile"

second is the disablelink line,  we had the problem of hidden pages showing up in results  but realised sometmes we WANT hidden pages to show up, but sometimes we hide pages cos they're not ready to be published. so i decided that if i "disable" the page then i definitely don't want it to come up in the results, but I might want to keep it for later (we aren't much for deleting pages around here)


third is the OR m.ModuleTitle like '%' + @Word + '%' part --- now this is kind of a subjective one. i have a web site right now for a client that sells insurance. home insurance, life insurance, and car insurance. when i searched "car" i didn't get the car insurance page at all, even though the page was titled car insurance and the module was titled car insurance.... the content copy used the word "automobile" because this particular client is very traditional and was picky about that wording. so i added the "OR" line because if we put the search term in the title, it's most likely relevant. we know module titles are what show up as the links on the SRP and so we make sure those titles are always relevant and helpful for the user.


BUT -- we would like to see page name or page title as an option in the settings for how the text displays. we couldn't figure out how to modify the core to do that.

 

ok that is all i hope this has been informational

 
New Post
7/16/2007 12:01 PM
 

The first line would definitely be a good change for the core.  Search has needed a LIKE clause for a long time.

I'd also like to echo support for Page Name and Page Title as search results display options.  It's caused some confusion when modules are given names like "Calendar" or "Events" or "News" when several pages may have the same module title.  We too have changed to using more descriptive and unique module titles, but it's not always optimal from a design solution.

We tend to not modify core.  We prefer that DNN developers handle core code and we do add-ons only.

Jeff

 
New Post
7/16/2007 1:23 PM
 

Good comments.

We keep an updated version of DotNetNuke in source control and when DNN sends updates we download the latest source and I manually replicate or preserve the changes I've made in previous versions (depending on if the file I've changed has significantly changed from DNN team -- Usually I only replicate Web.Config and Default.aspx pages, and preserve the rest.)

If anyone is interested in the other changes I have made to DNN core I could discuss them.

We usually have a "blank" or "notitle" ascx in the containers folder which omits the module title. This allows us to maintain the module title through settings while avoiding any distraction from design.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Search ImprovementsSearch Improvements


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