heimrichhannot/contao-blocks 问题修复 & 功能扩展

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

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

heimrichhannot/contao-blocks

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>

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固