I need help with changing the search result Title to the metadata DocumentPageTitle
from the following transformation.
<div style="clear: both">
Or, you can also change the source field in the page type definition. There are some default index fields, and you can set source fields for them (Sample screen shot). So, this way you can have different fields set for different page types. More details can be found in our documentation.
Have you tried to change Eval("Title") to Eval("DocumentPageTitle") in the following line of code?
<%#SearchHighlight(HTMLHelper.HTMLEncode(CMS.Base.Web.UI.ControlsHelper.RemoveDynamicControls(DataHelper.GetNotEmpty(Eval("Title"), "/"))), "
I changed the title field on the page type to DocumentPageTitle save and rebuild the index, it works like magic.
I didn't make any changes to the transformation I left the title as it is.
Please, sign in to be able to submit a new answer.