$page->indexOf()
Returns the position / index in the collection
Parameters
Name | Type | Default |
---|---|---|
$collection | Kirby\Cms\Collection |null |
null |
Return type
int
|false
Parent class
Example
This is just a constructed example. It's worth noting that for simple styling use, you could use CSS only.