Developer forum

Forum » Feature requests » Hide fields of item type in search result

Hide fields of item type in search result

Dennis van de Giessen
Reply

Hello, I’ve been trying the search module to find specific pages on my website.

The problem is that I want to hide certain values from certain fields in my search result (DwSearchResultSummary). I’ve looked at the ItemType properties of the value that i want to hide but no option to hide the field in the search module was found.

Example:


ItemType: ActionBanner

Fields:

Afbeelding:
Type: Link
Value: Files/Files/Images/ActionBanner/thee.png

Titel:
Type: Text
Value: Thee

Description:
Type: Long text
Value: Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et.
 

When searching for this page, the following DwSearchResultSummary is generated:

“Files/Files/Images/ActionBanner/thee.png Thee Totale ontzorging dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan...”

 

The problem here is that I want the search module not to render the Afbeelding field from my ActionBanner itemType.

The desired description for this itemtype would be:

 “Thee Totale ontzorging dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan...”

Is there any way to achieve this (without adding code to strip paths to files out of the DwSearchResultSummary string)

Thank you for your time.

- Dennis

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Dennis

Yes, that is coming up - please see release notes for 8.7: http://developer.dynamicweb.com/releases/dynamicweb-8-7.aspx#16911

Votes for this answer: 1