Page Type field in search results

lawrence whittemore asked on August 28, 2019 17:00

is there a way to show a field from a page in a search result transformation? I have a URL field that I want the search result to link to instead of the page if the page has the url field filled in.

Correct Answer

Brenden Kehren answered on August 28, 2019 17:23

As long as the field is part of the search results you can get the value of that field by using <%# GetSearchValue("UrlColumnName") %> Keep in mind though if that field is not part of all the page types, you may get some errors or unexpected results.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on August 29, 2019 08:11

Just to add to Brenden's post, the search transformation methods/macros are described in the Displaying local index search results using transformations documentation.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.