Skip to content

Instantly share code, notes, and snippets.

@kraftb
Created August 5, 2014 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kraftb/8d80726d124591572a37 to your computer and use it in GitHub Desktop.
Save kraftb/8d80726d124591572a37 to your computer and use it in GitHub Desktop.
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Crossport setup');
if (TYPO3_MODE === 'BE') {
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'ThinkopenAt.' . $_EXTKEY,
'user', // Make module a submodule of 'user'
'crossport', // Submodule key
'', // Position
array(
'Upload' => 'upload',
'CrossportPreset' => 'detect, preview, crossport',
),
array(
'access' => 'user,group',
'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_crossport.xlf',
)
);
}
module.tx_crossport {
view {
# cat=module.tx_crossport/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:crossport/Resources/Private/Backend/Templates/
# cat=module.tx_crossport/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:crossport/Resources/Private/Backend/Partials/
# cat=module.tx_crossport/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:crossport/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_crossport//a; type=string; label=Default storage PID
storagePid =
}
}
# Module configuration
module.tx_crossport {
persistence {
storagePid = {$module.tx_crossport.persistence.storagePid}
}
view {
templateRootPath = {$module.tx_crossport.view.templateRootPath}
partialRootPath = {$module.tx_crossport.view.partialRootPath}
layoutRootPath = {$module.tx_crossport.view.layoutRootPath}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment