heimrichhannot/contao-member-listing-bundle
最新稳定版本:0.1.3
Composer 安装命令:
composer require heimrichhannot/contao-member-listing-bundle
包简介
Add list and reader elements for members.
README 文档
README
This bundle provides a simple content element to list frontend members.
Features
- List frontend members
- Choose the members to show with a member picker wizard
- JSON-LD with the selected member's data included
- Supports showing member images
Installation
Install via composer or contao manager.
composer require heimrichhannot/contao-member-listing-bundle
Then, update your database.
Usage
- Create a new content element of type "Member list" and configure it as needed.
- Customize the template
content_element/member_listto your needs.
Member images
This bundle comes with support for member images. To use this feature, you need to add an image field (singleSRC) to your member dca.
Afterward you get a size selection in the content element configuration.
Two templates with image support are already bundled.
<?php # /contao/dca/tl_member.php $GLOBALS['TL_DCA']['tl_member']['fields']['singleSRC'] = [ 'exclude' => true, 'inputType' => 'fileTree', 'eval' => ['filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => true, 'tl_class' => 'clr'], 'sql' => "binary(16) NULL", ];
For legacy compatibility, you may also add an
addImagefield to your member dca, to toggle the image display on or off. This is however discouraged and will be removed in future versions of this bundle.
统计信息
- 总下载量: 561
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-09-19
