Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creation of custom Search url using handlebars #244

Open
Timo-Breumelhof opened this issue Aug 27, 2024 · 1 comment
Open

Allow creation of custom Search url using handlebars #244

Timo-Breumelhof opened this issue Aug 27, 2024 · 1 comment

Comments

@Timo-Breumelhof
Copy link
Collaborator

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants