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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesImplementing ISearchableImplementing ISearchable
Previous
 
Next
New Post
4/15/2010 7:15 AM
 

Hi

I have a custom news module. To display a news article I use a single page (News.aspx) that looks at the querystring for an articleId and obtains the article from the database / displays the article within the page.

My problem is in implementing ISearchable, my articles appear in the search results but the URL just points to News.aspx. I need it to be, for example,  News.aspx?articleId=23.

Is there any way to achieve this?

My thanks in advance for any help!

Stuart

 
New Post
4/15/2010 12:03 PM
 
You have to do this through the GUID setting in ISearchable I believe. I'm looking up some sample code I've used in the past and will post it here shortly

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/15/2010 12:08 PM
 
Great, thanks Chris. That would be really helpful!
 
New Post
4/15/2010 12:19 PM
 

So the way I've made this work in modules in the past is to pass in my querystring parameters in the GUID setting.

When creating your searchiteminfo object you should configure the GUID setting

GUID="articleid="+###


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/15/2010 3:24 PM
 

Hi Chris

I tried adding a line to set the guid property but still no joy. Please see my code below, any advise gratefully received!!

Thanks,

Stuart

public

SearchItemInfoCollection GetSearchItems(ModuleInfo modInfo)var articlesRepository = new ArticlesRepository();List<Article> articleList = articlesRepository.GetMostRecentArticles(null, null);var searchItemCollection = new SearchItemInfoCollection();foreach (Article article in articleList)var searchItem = new SearchItemInfo

(modInfo.ModuleTitle +

article.Headline,

0,

article.DateFrom, modInfo.ModuleID,

 

article.Headline + article.Summary + article.Body);

searchItem.GUID =

 

searchItemCollection.Add(searchItem);

}

 

}

" - " + article.Headline,Convert.ToString(article.ArticleId),"articleid=" + article.ArticleId;return searchItemCollection;

{

 

 

 

 

{

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesImplementing ISearchableImplementing ISearchable


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