bolt / bolt/docs

Example {{ searchresult.no_of_results }} does not work

Open
#1,269 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
45
Forks
189
PR merge metrics
No merged PRs in 30d

Description

On this page:
[https://docs.boltcms.io/5.0/templating/content-search#setcontent-search](https://docs.boltcms.io/5.0/templating/content-search#setcontent-search)

is an example usecase:
```
{% if records|length == 0 %}


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


{% else %}
...
{% endif %}
```
But `{{ searchresult.no_of_results }} ` returns an error:
**Variable "searchresult" does not exist.**

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.