Hi,
I just noticed that on the search results page, either my own or the one in the search preview, don't show the content for some of my document types (however on others it works fine). Even if I just put <%# Eval("Content") %>, it will show nothing. But if I put <%# GetSearchValue("_content") %>, it will show the entire content (including url and image url, which is not what I want, but it does include the content I want it to show).
<%# Eval("Content") %>
<%# GetSearchValue("_content") %>
What can cause this? I tried resetting the document type search settings by clicking Set automatically button, but it's still the same.
Thanks
Ok, for some reason Content field as DocumentContent didn't return any result for those document types. If I set them to one of the document fields it worked.
Yes, very important to set those values after you set the doc type up. In v7 an earlier, you did that when you created the doc type. Little different in v8.
But why does it work for some documents? I usually left the Content field set as DocumentContent, and it worked.
Any idea what exactly is this DocumentContent?
Hello Yehuda,
DocumentContent is one column of the CMS_Document table which stores the content of editable regions on pages.
Best regards, Martin
Please, sign in to be able to submit a new answer.