Project

General

Profile

Bug #87364

Updated by Benjamin Gries Gries over 5 years ago

The slug generation wizard ignores the columnsOverrides of TCA. This makes it impossible to override the configuration for your custom doktypes. I tested it with the following snippets for the doktype 50 in a TYPO3 9.5.3 environment. 

 Code A (doesn't work): 

 <pre><code class="php"> 
 $GLOBALS['TCA']['pages']['types'][50]['columnsOverrides'] = [ 
     'slug' => [ 
          'config' => [ 
              'generatorOptions' => [ 
                  'fields' => [ 
                      'title', 'nav_title' 
                  ], 
                  'fieldSeparator' => '-', 
                  'prefixParentPageSlug' => true, 
              ] 
          ] 
      ] 
 ]; 
 </code></pre> 

 Code B (works like a charm): 

 <pre><code class="php"> 
 $GLOBALS['TCA']['pages']['columns']['slug']['config']['generatorOptions'] = [ 
     'fields' => [ 
         'title', 'nav_title' 
     ], 
     'fieldSeparator' => '-', 
     'prefixParentPageSlug' => true, 
 ]; 
 </code></pre>

Back