Skip to content

Releases: oveleon/contao-member-extension-bundle

1.5.1

14 Jun 06:44
Compare
Choose a tag to compare

Bugfix

  • #24 Fixed an error with non-handled insert tags params 9297ac3

1.5.0

06 Jun 14:30
Compare
Choose a tag to compare

Feature

This update has been sponsored by @netzarbeiter

Setup

  • use mod_memberList_table & memberExtension_list_row as templates within the member-list module
  • activate the j_datatables jQuery template within your layout settings

Additional settings

Additional settings can be found within the data-attributes of the mod_memberList_table template

Attribute Default Description
data-zero-label No matching records found Label for zero matches
data-search-label Search: Search box label

Please refer to the documentation of https://datatables.net/ and the initialization within j_datatables to enhance this feature with more options

Please mind, that using this new feature will disable the server-sided pagination.
The datatables Pagination will work > 10 items per page.


Full Changelog: 1.4.2...1.5.0

1.4.2

12 May 11:18
Compare
Choose a tag to compare

Bugfix

  • Fix #22 - Changed string classname to class import

Full Changelog: 1.4.1...1.4.2

1.4.1

09 May 20:39
Compare
Choose a tag to compare

Change

  • Use feEditable instead of the deprecated/removed feViewable

Full Changelog: 1.4.0...1.4.1

1.4.0

11 Apr 12:42
Compare
Choose a tag to compare

This update was funded by @netzarbeiter

Additions

  • simultaneous Contao 4.13 and 5.3 compatibility
  • Hooks (see below)
  • Frontend Filters (see below)
  • alias generation (activate in module)
  • go back page

Changes

  • rewrote hooks
  • rewrote modules to frontend controllers
  • rewrote avatar upload to Symfony/UploadedFile

Filter

Allows filtering the member list in the frontend if the following conditions are met:

  • 'Activate filters' is set to true within the member list module
  • there exists fields within tl_member of inputType checkbox and evaluation feFilterable set to true

Hooks

getMembers

Allows modifying the columns and options for the database query.

// src/EventListener/onGetMembersListener.php
namespace App\EventListener;

use Contao\CoreBundle\DependencyInjection\Attribute\AsHook;
use Oveleon\ContaoMemberExtensionBundle\Controller\FrontendModule\MemberListController;

#[AsHook('getMembers')]
class onGetMembersListener
{
    public function __invoke(array &$columns, array &$options, MemberListController &$context): void
    {
        // Do something...
    }
}

parseMemberReader

Allows modifying the member detail page

// src/EventListener/onParseMemberReaderListener.php
namespace App\EventListener;

use Contao\CoreBundle\DependencyInjection\Attribute\AsHook;
use Contao\MemberModel;
use Contao\Model;
use Contao\ModuleModel;
use Contao\Template;
use Oveleon\ContaoMemberExtensionBundle\Controller\FrontendModule\MemberReaderController;

#[AsHook('parseMemberReader')]
class onParseMemberReaderListener
{
    public function __invoke(MemberModel|Model &$member, Template &$template, ModuleModel &$model, MemberReaderController &$context): void
    {
        // Do something...
    }
}

parseMemberTemplate

Allows modifying the member details

// src/EventListener/onParseMemberTemplateListener.php
namespace App\EventListener;

use Contao\CoreBundle\DependencyInjection\Attribute\AsHook;
use Contao\FrontendTemplate;
use Contao\MemberModel;
use Contao\Model;
use Contao\ModuleModel;
use Oveleon\ContaoMemberExtensionBundle\Controller\FrontendModule\MemberExtensionController;

#[AsHook('parseMemberTemplate')]
class onParseMemberTemplateListener
{
    public function __invoke(MemberModel|Model &$member, array &$fields, FrontendTemplate &$template, ModuleModel &$model, MemberExtensionController &$context): void
    {
        // Do something...
    }
}

Full Changelog: 1.3.2...1.4.0

1.3.2

30 Mar 12:17
be7922c
Compare
Choose a tag to compare

Bugfix

  • Fix PHP warnings in Personal Data module by @joke1 in #18

Full Changelog: 1.3.1...1.3.2

1.3.1

11 Sep 09:48
b31a48e
Compare
Choose a tag to compare

Bugfix

  • Fixed a potential sorting order issue in member_list 8e2cb67

1.3.0

15 Jan 16:01
d96aaaf
Compare
Choose a tag to compare

Information

  • Dropped Contao 4.9 (4.13 only) and PHP <8 support d8dfda1

Changes

  • never display members that are disabled by "start" and "stop" date 61a9d29
  • changed image procession to FigureBuilder e39d937
  • fixed potential PHP 8 errors

1.2.3

13 Aug 17:19
0060055
Compare
Choose a tag to compare

Bugfix

  • Fixed a bug where displaying member lists with page limit would sometimes not work

1.2.2

10 Aug 11:50
a5d4fa3
Compare
Choose a tag to compare

Addition

  • added a new insert tag: {{avatar_url::*}} to output the filepath of a member avatar (see readme.md)

Bugfixes

  • Fixed a bug where using the insert tag {{avatar::member::**}} with a non existent member or a non-existent file would not show the setup fallback image