public function addBreadcrumb()
    {
        $this->updateBreadcrumbNode();

        $nodeId = $this->session->get('tl_page_node');

        if ($nodeId < 1) {
            return;
        }

        $trail = $this->getBreadcrumbTrail($nodeId);

        // Generate breadcrumb trail
        if (0 === count($trail)) {
            $this->session->set('tl_page_node', 0);

            return;
        }

        $this->checkTrailAccess($nodeId, $trail);
        $this->buildBreadcrumb($nodeId, $trail);
    }
public function addBreadcrumb()
    {
        $this->updateBreadcrumbNode();

        $nodeId = $this->session->get('tl_page_node');

        if ($nodeId < 1) {
            return;
        }

        $trail = $this->getBreadcrumbTrail($nodeId);

        // Generate breadcrumb trail
        if (0 === count($trail)) {
            $this->session->set('tl_page_node', 0);

            return;
        }

        $this->checkTrailAccess($nodeId, $trail);
        $this->buildBreadcrumb($nodeId, $trail);
    }
public function addBreadcrumb ( ) { $ this -> updateBreadcrumbNode ( ) ; $ nodeId = $ this -> session -> get ( 'tl_page_node' ) ; if ( $ nodeId < 1 ) { return ; } $ trail = $ this -> getBreadcrumbTrail ( $ nodeId ) ; // Generate breadcrumb trail if ( 0 === count ( $ trail ) ) { $ this -> session -> set ( 'tl_page_node' , 0 ) ; return ; } $ this -> checkTrailAccess ( $ nodeId , $ trail ) ; $ this -> buildBreadcrumb ( $ nodeId , $ trail ) ; }
Override the default breadcrumb menu, we want to show folder pages before root pages.
Override the default breadcrumb menu we want to show folder pages before root pages .