heimrichhannot/contao-advanced-member-bundle

此扩展增强了contao成员实体,添加了额外功能。

1.0.0 2023-03-01 14:01 UTC

This package is auto-updated.

Last update: 2024-08-29 17:18:42 UTC


README

此扩展通过添加额外字段和功能增强了contao成员实体。所有功能都是可选的,必须激活或明确使用,因此只需选择您需要的功能。

功能

  • 添加成员和成员组别名的选项
  • 添加额外成员字段的选项
  • 锁定成员登录命令

使用方法

安装

  1. 使用composer或contao管理器安装

     composer require heimrichhannot/contao-advanced-member-bundle
    
  2. 更新数据库

成员别名

huh_advanced_member.enable_member_alias设置为true并更新数据库,以启用成员别名。

# config/config.yml
huh_advanced_member:
    enable_member_alias:  true

成员组别名

huh_advanced_member.enable_member_group_alias设置为true并更新数据库,以启用成员组别名。

额外字段

此扩展可以为成员实体添加一些常用的额外字段。

您可以在配置中激活以下4种字段类别

huh_advanced_member:
  enable_additional_title_fields: true
  enable_additional_job_fields: true
  enable_image_fields: true
  enable_social_fields: true

标题字段

  • 学术头衔
  • 扩展头衔
  • 贵族头衔
  • 学术学位

工作字段

  • 工作头衔
  • 职位

图片字段

  • 添加图片
  • singleSRC(在添加图片子选项卡中)
  • 标题(在添加图片子选项卡中)

社交字段

  • 领英个人资料
  • xing个人资料
  • Facebook个人资料
  • Twitter个人资料

锁定成员登录

要锁定或解锁所有成员的登录,请使用huh:member:lock-login命令。

Usage:
  huh:member:lock-login [options] [--] <action>

Arguments:
  action                Choose which action to perform: One of "lock"; "unlock"

Options:
      --dry-run         Performs a run without making changes to the database.
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  This command disables (or restore) the login option for all members.
  
  The following statement disables the login for all members:
  
  php ./vendor/bin/contao-console huh:member:lock-login lock
  
  The following statement restores the login for all members where the login was disabled by this command:
  
  php ./vendor/bin/contao-console huh:member:lock-login unlock
  
  If you want to check how many members will be locked before, you can use the dry-run option:
  
  php ./vendor/bin/contao-console huh:member:lock-login lock --dry-run

配置参考

# Default configuration for extension with alias: "huh_advanced_member"
huh_advanced_member:

   # Enable to add an alias field to member entity.
   enable_member_alias:  false

   # Enable to add an alias field to member group entity.
   enable_member_group_alias: false

   # Enable to add additional title fields to member entity.
   enable_additional_title_fields: false

   # Enable to add additional job fields to member entity.
   enable_additional_job_fields: false

   # Enable to add image fields to member entity.
   enable_image_fields:  false

   # Enable to add social fields to member entity.
   enable_social_fields: false