Skip to content

Instantly share code, notes, and snippets.

@alrnz
Last active May 8, 2019 08:43
Show Gist options
  • Save alrnz/dadb118a4fb65916781e to your computer and use it in GitHub Desktop.
Save alrnz/dadb118a4fb65916781e to your computer and use it in GitHub Desktop.
Create new pagetype in TYPO3 with typenum 666 #TYPO3 #TypoScript
##### TYPOSCRIPT insert a plugin via typoscript / get result of conroller
tx_sz_catseach_ajax = PAGE
tx_sz_catseach_ajax {
typeNum = 666
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 = SzCatsearch
pluginName = Szcatsearchfields
vendorName = Sunzinet
# controller = Category
# action = ajax
switchableControllerActions {
# Controller without "Controller" (TestController -> Test)
Category {
# Action without "Action" (ShowAction -> show)
1 = ajax
}
}
#view < plugin.tx_szcatsearch.view
#persistence < plugin.tx_szcatsearch.persistence
#settings < plugin.tx_szcatsearch.settings
}
}
@alrnz
Copy link
Author

alrnz commented Jul 6, 2015

plugin.tx_Extensioname.mvc.callDefaultActionIfActionCantBeResolved = 1
plugin.tx_Extensionname.features.skipDefaultArguments = 1
Um zu verhindern, dass man über die Url die Action umstellen kann.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment