Skip to content

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

Open
@Steve-MP

Description

@Steve-MP

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions