Project

General

Profile

Actions

Bug #99498

open

"type=user" in ext_conf_template.txt: Value is not passed to custom method anymore

Added by David Bascom over 1 year ago. Updated about 2 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Start date:
2023-01-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

We have an extension that creates a custom field for the Extension Manager:

// ext_conf_template.txt

# cat=Basic; type=user[Vendor\Extension\Helpers\MyCustomHelper->textfield]; label=My Label
myVarName = 

The MyCustomHelper class looks like this (just an example, of course senseless as standard "inputs" exist in the Core ;)

<?php

namespace My\Extension\Helpers;

class MyCustomHelper {

    public function textfield( $conf = [] ) 
    {
        return "<input name=\"{$conf['fieldName']}\" class=\"form-control\" value=\"{$conf['fieldValue']}\"></input>";
    }

}

- The field gets rendered correctly, but $conf['fieldValue'] is always empty / NULL.
- If you fill out the field, it gets saved correctly in the LocalConfiguration.php / settings.php - but it is not passed back to the method when the custom form in the Extension Configuration Manager is rendered.
- The saved value can also be accessed using GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('my_extension_key');.

Possible starting point:
- Value exists and is correct in EXT:cms-install/Classes/Controller/SettingsController.php
- Value does NOT exists in EXT:cms-core/Classes/TypoScript/AST/Visitor/AstConstantCommentVisitor.php->parseNodeComment()


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Task #98357: Revamp Constant EditorClosed2022-09-16

Actions
Has duplicate TYPO3 Core - Bug #101835: fieldValue not supplied for user function defined field in install toolClosed2023-09-04

Actions
Actions

Also available in: Atom PDF