heimrichhannot/contao-member-listing-bundle

Add list and reader elements for members.

0.1.2 2024-12-09 08:14 UTC

This package is auto-updated.

Last update: 2024-12-09 08:14:57 UTC


README

Latest Stable Version

This bundle provides a simple content element to list frontend members.

screenshot_ce.png

Feature

  • list frontend members based on picker selection
  • json-ld added to your response with only the displayed member data
  • support for member images

Usage

Setup

  1. Install via composer or contao manager

    composer require heimrichhannot/contao-member-listing-bundle
  2. Update database

  3. Create a new content element of type "Member list" and configure it as needed.

  4. Customize the template content_element/member_list to 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. There are two template bundled with image support.

<?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",
];