Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Extension Development, add Scheduler Task

From TYPO3Wiki
Jump to: navigation, search
  • Register Scheduler Task in ext_localconf.php
PHP script:
  $TYPO3_CONF_VARS['SC_OPTIONS']['scheduler']['tasks']['tx_extkey_TaskName'] = array(
    'extension' => $_EXTKEY,
    'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xlf:TaskName.name',
    'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xlf:TaskName.description',
    // 'additionalFields' => 'tx_extkey_TaskName_AdditionalFieldProvider'
  );
    • Use »additionalFields« to add fields to the task configuration
  • Load classes in ext_autoload.php
PHP script:
  return array(
    'tx_extkey_TaskName' => t3lib_extMgm::extPath('extkey', 'tasks/class.tx_extkey_TaskName.php')
  );