heimrichhannot/contao-member-listing-bundle 问题修复 & 功能扩展

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

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

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

Latest Stable Version

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

  1. Create a new content element of type "Member list" and configure it as needed.
  2. Customize the template content_element/member_list to your needs.

screenshot_ce.png

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 addImage field 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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-09-19