Yenxji
Active member

This is from AdminCP: /admin.php?mods/games/Genshin-impact.1/repository
Is there a way to adjust or remove the breadcrumb and let the template or PHP handle the breadcrumb custom path?
PHP:
public function actionIndex(ParameterBag $params)
{
// Override all breadcrumbs
$reply->setPageParam('breadcrumbs', []);
$reply->setPageParam('breadcrumbPath', null);
// Set our specific breadcrumbs
$reply->setPageParam('breadcrumbs', [
['href' => $this->buildLink('mods/games'), 'value' => \XF::phrase('elf_mods')],
['href' => $this->buildLink('mods/games', $game), 'value' => $game->title],
['value' => \XF::phrase('game_repository')]
]);
return $reply;
}