title()->value(); $allTexts = page("textes")->grandChildren(); $textsInCategory = $allTexts->filterBy('category', $category); $children = new Pages(); foreach ($textsInCategory as $text) { $children->add($text); } return $children; } }