Skip to content

Instantly share code, notes, and snippets.

@joekolade
Created March 10, 2023 11:26
Show Gist options
  • Select an option

  • Save joekolade/d5ee1d83fcff74f687e430210375d01b to your computer and use it in GitHub Desktop.

Select an option

Save joekolade/d5ee1d83fcff74f687e430210375d01b to your computer and use it in GitHub Desktop.
[Ajax page] Configure an ajax page in typoscipt
ajax_###myextension### = PAGE
ajax_###myextension### {
typeNum = 6661
typeNum = {$plugin.tx_###myextension###.settings.###ajaxpagetype###}
config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders = Content-type: text/plain
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = ###MyExtension###
pluginName = ###list###
vendorName = ###MYVENDOR###
controller = ###Controller###
switchableControllerActions {
###Controller### {
1 = ###action###
}
}
view < plugin.tx_###myextension###.view
persistence < plugin.tx_###myextension###.persistence
settings < plugin.tx_###myextension###.settings
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment