Add/remove Frontend User to Group

Extension Key

jv_add2group

Classification

jv_add2group

Version

11.5.5

Language

en

Description

Offers the Possability to configure a headline, text and Button. Text is Only Shown if User has specific usergroup(s) Or opposite. Has NOT this Groops Access can be combined as AND Condition with default TYPO3 content usergroup Access

After confirming the Button, user can get defined Usergroup or be remove from that group Version: 1.1

Keywords

feuser,usergroup,alert,terms of use,tos,frontend user,jve

Copyright

2022

Author

Jörg Velletti

Email

typo3@velletti.de

License

This document is published under the Open Content License available from http://www.opencontent.org/opl.shtml

Rendered

Tue, 15 Jul 2025 09:36:56 +0000

The content of this document is related to TYPO3, a GNU/GPL CMS/Framework available from www.typo3.org.

Table of Contents

Introduction

Add the Plugin to any Page and Define headline and Text to Show

Restrictions

Define the needed Usergroup(s) that ruels, when to Show the Text. If you use "MAY not have group", please default TYPO3 Access -> "Show on any login"

Set Result

Result in Frontend will be a bootstrap alert div with alert-warning class. Only visible in this example if user has usergroup "_KategoryMogler"

if he accepts the Message, he will loose usergroup "_KategoryMogler"

To Dos

The plan for Version 2 is to a configurable list of Classes that can be configured via typoscript. this list will be added as select to the plugins flexform. after a usergroup Change in the Controller, this class should be called.

So f.e. you can add hooks to transport this usergroup change to an external CMS, email Newsletter tool or similar.

Installation

composer require jvelletti/jv_add2group

Configuration

just add the delivered typoscript template to you own template or include it

add this to your config (constants):
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:jv_add2group/Configuration/TypoScript/constants.ts">
and this to setup:
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:jv_add2group/Configuration/TypoScript/setup.ts">

feel free to copy my templates, Layouts or partials to from:typo3confextjv_add2groupResourcesPrivate to your own template extension f.e. : tx_your_template/Resources/jv_add2group/ override them.

You will need this as Constants:

plugin.tx_jvadd2group_add2group {
view {
templateRootPath = EXT:tx_your_template/Resources/jv_add2group/Templates/ partialRootPath = EXT:tx_your_template/Resources/jv_add2group/Partials/ layoutRootPath = EXT:tx_your_template/Resources/jv_add2group/Layouts/

}

}

Styling

But normaly it is sufficiant to copy only the folder Resources/Privat/Templates to f.e. fileadmin/theme/ (or your own sitepackage private folder)

add a constant in your typo3script that points to this folder
plugin.tx_jvadd2email.view.templateRootPath = fileadmin/theme/Templates

or a setup value: templateRootPaths.50 = fileadmin/theme/Templates

ChangeLog

For details have a look at the Github commits: https://github.com/velletti/jv_add2group/commits/master

11.5.12 - Add typoscript setting : nothingToDoMessage .. without this message no error will be shown.

11.5.11 - allow to set a list of allowed css Classes via Typoscript. One of them can be select in Plugin

11.5.10 - added Feature with configurable custom class via typoscript settings that finalizes the task.
(f.e. send Email to admin, create log entry etc ) see ClassesUtilityExampleWrapperUtility.php and Typoscript settings.hookClasses.example {

11.5.8 - if no title or no text for Button given, the header line or Button is not rendered.

11.5.1 -11.5.6 - First adjustments to be compatible with LTS 11 adding some mor debug options

1.0.6 - improvement - just trying to make the rendering of documentation files working

1.0.5 - Fix: Change Composer require for TYPO3 Version from 9.5.1 to ^9.5

1.0.4 - adding images to documentation

1.0.3 - adding documentation

1.0.2 - needed changes to be compatibel with composer packagist.org

1.0.1 - first running Version

Breaking changes

none

Table of Contents