sachatrauwaen / OpenContent

Structured Content editing for DNN (Dotnetnuke)
46 stars 25 forks source link

Allow creation of custom Search url using handlebars #244

Open Timo-Breumelhof opened 2 months ago

Timo-Breumelhof commented 2 months ago

I'm trying to get around an limitation of the DNN Search indexer. By default the urls of the DNN Search results point to the page the module is on. and not to the Module on that page.

So I tried this in the manifest

"dnnSearchUrl": "{{@root.Context.MainUrl}}#{{@root.Context.ModuleId}}"

This would point a user to the module and could even be manipulated to point to an items in a multi item template (when all are shown on one page|)

Although this works: "dnnSearchUrl": "#{{@root.Context.ModuleId}}"

There does not seem to be any support for the module page as a handlebars token.

If there would be an option for that, it would open up a lot of extra options :-)

b-creative commented 2 months ago

This would indeed make a difference! I'm also seeing possibilities in using this for directing a search result link to a page which scrolls to an opened accordion, at the point where there's a found Id (only for multi-item template)