定制 heimrichhannot/contao-blocks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

heimrichhannot/contao-blocks

最新稳定版本:2.0.4

Composer 安装命令:

composer require heimrichhannot/contao-blocks

包简介

Contao blocks bundle is a site-dependent container, that manipulates the visibility of elements.

README 文档

README

Contao blocks module is a site-dependent container, that manipulates the visibility of elements.

Features

Hooks

Name Arguments Expected return value Description
renderCustomBlockModule $objBlockModule, $strReturn the rendered module as string Add custom block module type rendering

Modules

Name Description
ModuleBlock Checks the visibility of the block on the current page and renders it according to his type (article, content, module)

Help

Get auto_item title in breadcrumb

Due a limitation in contao it is not possible to set the auto_item title from the breadcrumb hook (instead the containing page is shown twice), so you need to change the mod_breadcrumb template instead:

// Find this lines:
 
<?php if ($item['isActive']): ?>
    <li class="active<?php if ($item['class']): ?> <?= $item['class'] ?><?php endif; ?> last"><?= $item['pageTitle'] ?: $item['title'] ?></li>

// Replace '<?= $item['pageTitle'] ?: $item['title'] ?>' with '{{page::pageTitle}}'

<?php if ($item['isActive']): ?>
    <li class="active<?php if ($item['class']): ?> <?= $item['class'] ?><?php endif; ?> last">{{page::pageTitle}}</li>

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 6
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-01-27