I setup a document library of thousands of PDF's. My documents are organized into folders. Each parent folder contains child folders in which the PDF's reside. The PDF documents are stored with the "description" and the "remarks" fields complete. All the documents follow this same structure.
Example...
parent folder: Brand Name 222
child folder: More Details Listed
PDF document:
Description: Lot 11234
Remarks: Brand Name 222 More Details Listed Lot 11234
I have added the DMX module to my standard DNN search results page so that a search can be done outside of the DMX module. I would like the search results page to only return results of PDF documents. I have customized my search results itemtemplate to display the results as follows:
<--
class="SubHead" style='display: <%#IIF(DataBinder.Eval(Container.DataItem, "EntryType")="Hyperlink", "none", "block")%>'>
Visible="<%# ShowDescription() %>" />
-->
This shows the text from the "remarks" field as a direct link to the document.
If someone does a search for "Brand Name 222" I do not want the parent or child folder to be displayed in my search results pane. All I want is the list of PDFs.
Any idea of how to do this?
I tried to modify the stored procedure for DMX_LimitSearch by adding the following code, then restart the application:
IF @CollectionId > -1
BEGIN
DELETE FROM dbo.DMX_SearchResults
FROM dbo.DMX_SearchResults sr
INNER JOIN dbo.DMX_Entries e ON sr.EntryId=e.EntryId
WHERE e.EntryType = 'Collection'
END
This didn't work, I still got folders.
Any ideas?