$file->siblings()
Returns all sibling elements
$file->siblings(bool $self = true): Kirby\Cms\Collection
Parameters
| Name | Type | Default |
|---|---|---|
| $self | bool |
true |
Return type
Parent class
Example
if($file = $page->file()) {
foreach($file->siblings() as $sibling):
echo $sibling->html();
endforeach;
}