Project

General

Profile

Actions

Bug #94388

open

Slug postModifiers hook record data missing

Added by Sven Burkert almost 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2021-06-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
routing, realurl, hook, site configuration
Complexity:
medium
Is Regression:
Sprint Focus:
Needs Decision

Description

I want to use a hook for a slug field via "postModifiers" (see feature https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Feature-88198-TCA-basedSlugModifiersForExtensions.html).
Documentation says:

The method then receives a parameter array with the following values:
'record' ... the full record to be used

But the array key "record" doesn't contain the full record, just some:

array(5) { ["myrecord"]=> string(0) "" ["mytitle"]=> string(4) "test" ["uid"]=> int(199) ["pid"]=> int(175) ["sys_language_uid"]=> int(0) } 

It just contains two custom fields, I think because I provide these fields in the TCA configuration:

'generatorOptions' => [
  'fields' => ['myrecord', 'mytitle'],

Second bug: Field "myrecord" contains no value, even though I chose a record. Configuration for this field:

'config' => array(
  'type' => 'group',
  'internal_type' => 'db',
  'allowed' => 'tx_myext_domain_model_mymodel',

Edit 15.08.2022: Checked with newest TYPO3 v10, bug still existing.

Actions #1

Updated by Sven Burkert over 1 year ago

  • Category deleted (Backend API)
  • Complexity set to medium
  • Sprint Focus set to Needs Decision
Actions #2

Updated by Sven Burkert over 1 year ago

  • Description updated (diff)
Actions #3

Updated by Sven Burkert over 1 year ago

  • Description updated (diff)
Actions #4

Updated by Sven Burkert over 1 year ago

  • Category set to Link Handling, Site Handling & Routing
Actions

Also available in: Atom PDF