bolt / bolt/docs

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

Open
#1,225 0 comments 0 reactions 1 assignee Claimed by @bobdenotter View on GitHub
Dominant language
PHP
Stars
45
Forks
189
PR merge metrics
No merged PRs in 30d

Description

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

The example use case:

`{% if records|length == 0 %}


{{ searchresult.no_of_results }} results for {{ searchTerm }} found.

`

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.