Skip to content

Commit 0952c90

Browse files
authored
Update requesting-pages.md
1 parent 82a3f60 commit 0952c90

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

resources/docs/2.23/requesting-pages.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,9 @@ You can specify the component types to return using the third argument which sho
190190

191191
Finally the last argument allows you to send additional parameters to the API call, for example `['per_page' => 10]`. See the [Storyblok API docs](https://www.storyblok.com/docs/api/content-delivery/v2) for more information.
192192

193-
```php
194-
// $story is a Host component
195-
// podcast has a Multi-Option relationship field called hosts
196-
@foreach($story->block()->inverseRelation('hosts', 'multi')['stories'] as $podcast)
197-
{{ $podcast['name'] }}
198-
@endforeach
193+
The returned data will match that if you requested the pages with a [Folder](/{{route}}/{{version}}/folders).
199194

195+
```php
200196
// requesting the inverse of a Single-Option relation
201197
$block->inverseRelation('foreign_relationship_field', 'single');
202198

@@ -205,4 +201,4 @@ $block->inverseRelation('foreign_relationship_field', 'multi', 'component1,compo
205201

206202
// requesting related stories of any type which start with the specificed slug
207203
$block->inverseRelation('foreign_relationship_field', 'multi', null, ['starts_with' => 'some_slug/']);
208-
```
204+
```

0 commit comments

Comments
 (0)