ASPX templates
Version 3.x > ASPX templates > excluding documents from search results View modes: 
User avatar
Member
Member
kbonett@uniteform.com - 7/17/2008 3:07:46 AM
   
excluding documents from search results
I want to exclude all image files from search results. In site manager, I have tried:

Exclude Document Types From Search:
cms.file

and...

Exclude Documents From Search:
/Images/%

(where Images is alias path of my pics folder)

Neither works.
I would prefer to exclude documents/folder rather than cms.file as non-graphic files need to be searchable.

Any ideas??

User avatar
Member
Member
kbonett@uniteform.com - 7/25/2008 4:21:23 AM
   
RE:excluding documents from search results
Any answers...?

I'm building another site at the moment which will also have a search facility, and I will want to limit the results.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 7/29/2008 5:11:32 AM
   
RE:excluding documents from search results
Hello,

Could you please make sure you have specified alias path of the document into 'Exclude Documents From Search' and not the name path? E.g. on CorporateSite the name of the folder is 'Images', but the alias is 'Images-(1)'. You can find alias path of appropriate document in 'CMSDesk -> Content -> select document in tree -> Edit -> Properties -> General -> Other properties' section.

If this won't help you, could you please let me know what version of Kentico CMS you are using? For me this setting works well on CorporateSite in version 3.1.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
kbonett@uniteform.com - 7/29/2008 10:22:02 AM
   
RE:excluding documents from search results
Thanks Martin,

I already tried that, and I've just tried again to make sure I wasn't doing something stupid.

Folder name is "pics" and alias is "Images". I added Images to 'Exclude Documents From Search' and they still show in search results.

I'm using V3.1.

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 7/30/2008 4:00:06 AM
   
RE:excluding documents from search results
Hello,

Have you tried to use "/Images" instead of "Images" in 'Exclude Documents From Search' setting? I tried to reproduce your issue and find out this as a possible solution.

Best Regards,
Zbysek Nemec

User avatar
Member
Member
kbonett@uniteform.com - 7/30/2008 6:35:59 AM
   
RE:excluding documents from search results
Cheers Zbysek... that did the trick!