foreign_table_prefix

foreign_table_prefix
Type:string or LLL reference
Scope:Display
RenderType:all

Label prefix to the title of the records from the foreign-table.

Examples

Select single field with foreign_prefix and foreign_where

      'select_single_3' => [ 
         'exclude' => 1,
         'label' => 'select_single_3 static values, dividers, foreign_table_where',
         'config' => [ 
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [ 
               '0' => [ 
                  '0' => 'Static values',
                  '1' => '--div--',
               ],
               '1' => [ 
                  '0' => 'static -2',
                  '1' => -2,
               ],
               '2' => [ 
                  '0' => 'static -1',
                  '1' => -1,
               ],
               '3' => [ 
                  '0' => 'DB values',
                  '1' => '--div--',
               ],
            ],
            'foreign_table' => 'tx_styleguide_staticdata',
            'foreign_table_where' => 'AND {#tx_styleguide_staticdata}.{#value_1} LIKE \'%foo%\' ORDER BY uid',
            'foreign_table_prefix' => 'A prefix: ',
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_select"