docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open Steve-MP opened this issue 4 years ago • 0 comments

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.

Steve-MP avatar Jan 10 '22 16:01 Steve-MP