Skip to content

Instantly share code, notes, and snippets.

@wikipeter
Last active August 29, 2015 14:13
Show Gist options
  • Save wikipeter/5397be24809def8e27cf to your computer and use it in GitHub Desktop.
Save wikipeter/5397be24809def8e27cf to your computer and use it in GitHub Desktop.
TypoScript based flux settings for an FE plugin (esp. controllerActions)
<?php
// enable pi_flexform for flux via typoscript on FE plugins
$TCA['tt_content']['types']['list']['subtypes_addlist']['myextension_myplugin'] = 'pi_flexform';
?>
plugin.tx_flux.providers {
myextension_myplugin {
tableName = tt_content
fieldName = pi_flexform
listType = myextension_myplugin
extensionKey = Vendor.MyPlugin
form {
fields {
switchableControllerActions {
label = Plugin Mode
name = switchableControllerActions
type = controllerActions
extensionName = Vendor.MyExtension
pluginName = MyController
actions {
MyController = list,accordion,show
}
subActions {
MyController {
list = show
accordion = show
}
}
requestUpdate = 1
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment