Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval / custom class example with class path as string does not work with double-slashes for FlexForm #252

Closed
sypets opened this issue Dec 5, 2019 · 2 comments · Fixed by #601

Comments

@sypets
Copy link
Contributor

sypets commented Dec 5, 2019

I am using the example for "eval" => "Vendor ...", but using this in FlexForms

The string as specified in the example with double-slashes does not work in my example. String with single-slashes does, e.g.

not:
'eval' => 'trim,Vendor\\Extension\\Evaluation\\ExampleEvaluation,required'

but:
'eval' => 'trim,Vendor\Extension\Evaluation\ExampleEvaluation,required'

(However, as stated above this was tested with FlexForm, not with TCA directly)

@remonator
Copy link
Contributor

Specifying the class name in ext_localconf.php as you did is also necessary when using without FlexForms (using 10.4.9).

@linawolf
Copy link
Member

linawolf commented Apr 2, 2021

Can be found at https://docs.typo3.org/m/typo3/reference-tca/master/en-us/ColumnsConfig/Type/Input/Properties/Eval.html now, Move Code to styleguide extension and make sure it is running.

@linawolf linawolf self-assigned this Apr 2, 2021
@linawolf linawolf removed their assignment Jun 1, 2022
linawolf pushed a commit that referenced this issue Jun 4, 2022
Use ::class with class name instead of static string in the description
of the property eval.

Some captions reflecting the file names are added to the code blocks.

Resolves: #599
Resolves: #252
linawolf added a commit that referenced this issue Jun 4, 2022
* Replace class name in static string in eval

Use ::class with class name instead of static string in the description
of the property eval.

Additionally, "required" is removed from the string, since this has been
moved to a separate property since v12.

Some captions reflecting the file names are added to the code blocks.

For v12, we can also add a "use" to ext_localconf.php to define the
full class name and use the short class name below.

Resolves: #599
Resolves: #252

* Add required property to eval example.

Co-authored-by: Lina Wolf <48202465+linawolf@users.noreply.github.com>

Co-authored-by: Lina Wolf <48202465+linawolf@users.noreply.github.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants