I have use sitefinity search. Problem is that on the search result the items coming from dynamicmodule doesn't have links. that is the items doesn't have href on it
<dt class="sfsearchResultTitle"><a id="cphContent_ctl01_ctl00_ctl00_resultsList_A1_1">my item data in dynamic module</a></dt>
Please let me know what to do with it?
In the Documentation it is mentioned that
Configure search index settings for dynamic modules
If you are searching in dynamic module items or custom fields created for any module, you must set the fields where you want the system to search.
You do this by expanding Advanced and entering the fields where to search, separated by commas.
For example, if you want to search your dynamic content types by Definition, enter Definition.
But it is not clear.
what i check that my fields are mentioned in search fields list by checking settings -> advanced ->dynamic modules -> controls - >mydynamic module -> Views -> mydynamicmoduleBackendList ->SearchFields
My fields are mentioned there automatically
My user control for search has markup as
<asp:Repeater ID="resultsList" runat="server">
<dl class="sfsearchResultsWrp sfsearchReultTitleSnippetUrl">
<div class="font22 bold result-title">
<dt class="sfsearchResultTitle"><a id="A1" runat="server" href='<%# Eval("Link")%>'><%# Eval("Title") %></a></dt>
<dd class="sfsearchResultUrl"><a id="A2" runat="server" href='<%# Eval("Link")%>'><%# Eval("Link")%></a></dd>
Please let me know what is wrong
Any Help Guys?
A resolution mentioned by Ben in my stackoverflow post seems to work http://stackoverflow.com/questions/24067043/sitefinity-search-on-dynamic-module-resulting-no-url
Only Problem there is to emove the display:none on the .sfContentToIndex .sfPublishDescWrp.sfHideInSearch Any possibility so that i get rid of that problem?
Thanks Svetoslav Manchev
But i have found an easy way in CMS itself by the help of same stack-overflow post [with all due respect stack-overflow forum looks far more knowledgeable then here :) ]
In the backend go to Administration -> Settings -> Advanced -> Search -> Controls -> SearchBackend -> Views -> SearchBackendEdit -> Sections -> PipeSettingsSectionInbound -> Fields -> InboundSettings. Then check the "Show content location" checkbox
The approach suggested in this thread would work if you only intend to display the content in question on one page. Two different lists that are on two different pages. Following this approach would mean that all results for a list on "page-a" would now be incorrectly rendering url's for "page-b" assuming I set "page-b" as the default content location.
There has to be a better approach to handling this? I need to keep "Content" enabled in my search widget to allow all my other content sources to display, but this means that I get an assortment of results that all will render as links, but only some of them actually work. That is confusing to a user.