in-square/pimcore-breadcrumbs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

in-square/pimcore-breadcrumbs

最新稳定版本:v1.0.1

Composer 安装命令:

composer require in-square/pimcore-breadcrumbs

包简介

Breadcrumbs builder for Pimcore documents with multisite and multilanguage support.

README 文档

README

Breadcrumbs builder for Pimcore documents with multisite and multilanguage support.

Requirements

  • PHP 8.3+
  • Pimcore 11 / Symfony 6.4
  • mhujer/breadcrumbs-bundle

Installation

composer require in-square/pimcore-breadcrumbs

Usage

Inject the service and generate breadcrumbs from the current document:

use InSquare\PimcoreComponents\Breadcrumbs\Breadcrumbs;
use Pimcore\Model\Document;

public function defaultAction(Document $document, Breadcrumbs $breadcrumbs): Response
{
    $breadcrumbs->generateDocumentBreadcrumbs($document);

    return $this->render('default/default.html.twig');
}

Add extra items (for example, object details):

$breadcrumbs
    ->generateDocumentBreadcrumbs($document)
    ->addItem($object->getName(), $objectUrl);

Behavior

  • Skips Link and Folder documents, and documents with navigation_exclude.
  • Resolves label from navigation_name property, then title, then key.
  • Determines the language root by walking up the parents and stopping at the last document with the same explicit language property as the current page.
  • Uses the current request host to build absolute URLs.

Rendering

The component uses mhujer/breadcrumbs-bundle, so you can render in Twig:

{{ wo_render_breadcrumbs() }}

Configure the view template in config/packages/white_october_breadcrumbs.yaml as needed.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固