Skip to content

Commit d22fdee

Browse files
author
Andy McCormick
committed
Merge branch '7.dev' of github.com:ExpressionEngine/ExpressionEngine-User-Guide into 7.dev
2 parents 15b6f93 + 6852797 commit d22fdee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/channels/entries.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,19 @@ Lastly, if you want to simply display your 404 page (with 404 headers) when no e
12241224

12251225
{if no_results} {redirect="404"} {/if}
12261226

1227+
NOTE: **Note:** If you have several nested tags, each one would need to include a `{if no_results}` pair to be parsed correctly.
1228+
1229+
For instance, if you have Grid field with `{if no_results}` block, the parent `{exp:channel:entries}` tag pair would need to include `{if no_results}` block as well.
1230+
```
1231+
{exp:channel:entries channel="blog"}
1232+
{if no_results} No entries {/if}
1233+
{my_grid_field}
1234+
{if no_results} Grid is empty {/if}
1235+
{my_grid_field:text}
1236+
{/my_grid_field}
1237+
{/exp:channel:entries}
1238+
```
1239+
12271240
### `{if not_category_request}`
12281241

12291242
{if not_category_request} content {/if}

0 commit comments

Comments
 (0)