XF 2.3 How do you adjust/remove the breadcrumb on AdminCP instead of the add-on?

Yenxji

Active member
1738163259196.webp

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;
    }
 
Back
Top Bottom