Skip to content

Instantly share code, notes, and snippets.

@benjaminrau
Created April 7, 2014 12:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminrau/10019732 to your computer and use it in GitHub Desktop.
Save benjaminrau/10019732 to your computer and use it in GitHub Desktop.
Using foreignTypes for inline relations
$GLOBALS['TCA']['sys_file_reference']['palettes']['turningTilesPalette']['canNotCollapse'] = 1;
$GLOBALS['TCA']['sys_file_reference']['palettes']['turningTilesPalette']['showitem'] = 'title;LLL:EXT:vmtemplates/Resources/Private/Language/locallang.xlf:flux.turningTiles.fields.settings.images.title,description;LLL:EXT:vmtemplates/Resources/Private/Language/locallang.xlf:flux.turningTiles.fields.settings.images.description';
<flux:field.inline.fal
name="settings.images"
multiple="TRUE"
maxItems="20"
foreignTypes="{
2: {showitem: '--palette--;LLL:EXT:vmtemplates/Resources/Private/Language/locallang.xlf:flux.turningTiles.fields.settings.images.single;turningTilesPalette,--palette--;;filePalette'}
}" />
Screenshot:
http://imageshack.com/a/img819/9632/mrsr.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment