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

[Bolt 5] Documentation for global search contains reference to non-existent variable #1225

Open
Steve-MP opened this issue Jan 10, 2022 · 0 comments
Assignees

Comments

@Steve-MP
Copy link

See https://docs.boltcms.io/5.0/templating/content-search#global-search

The example use case:

{% if records|length == 0 %} <p> {{ searchresult.no_of_results }} results for {{ searchTerm }} found. </p>

results in the runtime error

Variable "searchresult" does not exist.

I guess the variable name has not been updated from a previous version of Bolt CMS, but I don't know what it should be.

@bobdenotter bobdenotter self-assigned this Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants