is <?php if($page->isChildOf('fiches')): ?> is the correct syntax ? (like in the example)
I have and error message when I use it
Catchable fatal error: Argument 1 passed to PageAbstract::isChildOf() must be an instance of Page, string given, called in templates/single-post.php on line 36 and defined in /kirby/core/page.php on line 887
I use this function on other websites without problem, Did I miss something ? (Sure it’s stupid but I can’t find what)
Thanks for pointing this out. This is most likely a bug in Kirby (as that was supposed to work in older Kirby versions). And if it’s not, it is a bug in the docs.