Initial commit
This commit is contained in:
100
typo3conf/ext/metaseo/ext_tables.php
Normal file
100
typo3conf/ext/metaseo/ext_tables.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') or exit;
|
||||
|
||||
// ############################################################################
|
||||
// TABLES
|
||||
// ############################################################################
|
||||
|
||||
// ################
|
||||
// Settings Root
|
||||
// ################
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
|
||||
'tx_metaseo_setting_root',
|
||||
'EXT:metaseo/Resources/Private/Language/locallang.tca.xml'
|
||||
);
|
||||
|
||||
|
||||
// ############################################################################
|
||||
// Backend
|
||||
// ############################################################################
|
||||
|
||||
if (TYPO3_MODE == 'BE') {
|
||||
|
||||
// ####################################################
|
||||
// Module category "WEB"
|
||||
// ####################################################
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
|
||||
'Metaseo.' . $_EXTKEY,
|
||||
'web',
|
||||
'pageseo',
|
||||
'', # Position
|
||||
array('BackendPageSeo' => 'main,metadata,geo,searchengines,url,pagetitle,pagetitlesim'), # Controller array
|
||||
array(
|
||||
'access' => 'user,group',
|
||||
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Backend/Icons/ModuleSeo.png',
|
||||
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleSeo/locallang.xlf',
|
||||
)
|
||||
);
|
||||
|
||||
// ####################################################
|
||||
// Module category "SEO"
|
||||
// ####################################################
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
|
||||
$_EXTKEY,
|
||||
'metaseo',
|
||||
'',
|
||||
'',
|
||||
array(),
|
||||
array(
|
||||
'access' => 'user,group',
|
||||
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleMain/locallang.xlf',
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
|
||||
'Metaseo.' . $_EXTKEY,
|
||||
'metaseo',
|
||||
'controlcenter',
|
||||
'',
|
||||
array('BackendControlCenter' => 'main'),
|
||||
array(
|
||||
'access' => 'user,group',
|
||||
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Backend/Icons/ModuleControlCenter.png',
|
||||
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleControlCenter/locallang.xlf',
|
||||
)
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
|
||||
'Metaseo.' . $_EXTKEY,
|
||||
'metaseo',
|
||||
'sitemap',
|
||||
'after:controlcenter',
|
||||
array('BackendSitemap' => 'main,sitemap'),
|
||||
array(
|
||||
'access' => 'user,group',
|
||||
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Backend/Icons/ModuleSitemap.png',
|
||||
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleSitemap/locallang.xlf',
|
||||
)
|
||||
);
|
||||
|
||||
// ############################################################################
|
||||
// REGISTER AJAX CONTROLLERS
|
||||
// ############################################################################
|
||||
// AJAX
|
||||
\Metaseo\Metaseo\Utility\ExtensionManagementUtility::registerAjaxClasses(
|
||||
\Metaseo\Metaseo\Controller\Ajax\AbstractPageSeoController::getBackendAjaxClassNames()
|
||||
);
|
||||
\Metaseo\Metaseo\Utility\ExtensionManagementUtility::registerAjaxClasses(
|
||||
\Metaseo\Metaseo\Controller\Ajax\SitemapController::getBackendAjaxClassNames()
|
||||
);
|
||||
}
|
||||
|
||||
// ############################################################################
|
||||
// CONFIGURATION
|
||||
// ############################################################################
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'MetaSEO');
|
||||
Reference in New Issue
Block a user