DNN search integration
Search results customization
There are 4 settings you can addto the manifest.json specific for DNN search :
- dnnSearch,
- dnnSearchTitle,
- dnnSearchDescription,
- dnnSearchText
You add these to the "Main" template.
dnnSearch
By default Open Content is not indexed in DNN.
To activate indexing, set dnnSearch to true in the manifest
dnnSearchTitle
With this attribute you can set what Text will be passed to DNN search crawler as the Title.
dnnSearchDescription
With this attribute you can set what Text will be passed to DNN search crawler as the Description.
dnnSearchText
With this attribute you can set what Text will be passed to DNN search crawler as the Main Text.
- When you change the search settings of your template, you mostly have to go to the "Filer" settings and click [Re-index Module].
{
"index": true,
"templates": {
"list": {
"type": "multiple",
"title": "List",
"main": {
"template": "list.hbs",
"dnnsearch": true,
"dnnSearchTitle": "{{Title}}",
"dnnSearchDescription": "Article: {{Summary}}",
"dnnSearchText": "{{Text}}"
},
"detail": {
"template": "detail.hbs",
}
}
}
}
Also see Manifest for exact usage and examples.
Updated less than a minute ago