Technical support This forum is closed.
Version 1.x > Technical support > Detailed Search View modes: 
User avatar
Guest
shakil_mian - 7/18/2006 9:14:51 AM
   
Detailed Search

Hi,
When i use the Detailed Search templates on one one of my pages (on A-Level) I see "All Content" and "Only this section" in the "Search Scope" combobox.

How do i get it list all available sections of my website?

Thanks
Shakil

User avatar
Guest
admin - 7/18/2006 3:54:30 PM
   
Re: Detailed Search
Hello,

if you want to offer users with site sections, you need to use custom search dialog. You can get the sections of your web site using

TreeProvider.SelectNodes("/%", TreePathTypeEnum.AliasPath, "cms.menuitem")

and you can search items using the

TreeProvider.Search

method.

Best Regards,

User avatar
Guest
shakil_mian - 7/19/2006 7:20:50 AM
   
Re: Detailed Search
How does "Only this section" in the "Search Scope" combobox work. I have placed a search page on the A-Level, and one in B-Level with no difference in search when "Only this section" is selected i.e. all iteams from all sections are returned.

Thanks,
Shakil

User avatar
Guest
shakil_mian - 7/19/2006 7:58:10 AM
   
Re: Detailed Search
Also, i have seen that in Kentico 1.9, scope is not included in the detailed search?

Thanks,
Shakil

User avatar
Guest
admin - 7/24/2006 11:31:53 AM
   
Re: Detailed Search
Hello,

The CMSSearchDialog.SearchScope indicates if the value in CMSSearchResults.Path property should be used when searching for content.

Best Regards,