Skip to content

Commit

Permalink
Make bootstrap_package compatible with themes (part 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Jun 9, 2014
1 parent a8879cd commit 77414e6
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 43 deletions.
3 changes: 3 additions & 0 deletions Configuration/PageTS/mod_themes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod.tx_themes {
constantCategoriesToShow = bootstrap package: basic,bootstrap package: advanced
}
File renamed without changes.
File renamed without changes.
Binary file added Meta/Screens/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added Meta/theme.yaml
Empty file.
14 changes: 7 additions & 7 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
'lockType' => '',
'author' => 'Benjamin Kott',
'author_email' => '[email protected]',
'author_company' => '',
'author_company' => 'private',
'CGLcompliance' => NULL,
'CGLcompliance_note' => NULL,
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-6.2.99',
'depends' => array(
'typo3' => '6.2.0-6.2.99',
'css_styled_content' => '6.2.0-6.2.99',
'realurl' => '1.12.8-1.12.99',
),
'conflicts' => array(),
'suggests' => array()
),
),
'conflicts' => array(),
'suggests' => array()
),
);
16 changes: 12 additions & 4 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
/***************
* Default TsConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'.$_EXTKEY.'/Configuration/PageTS/ModWizards.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'.$_EXTKEY.'/Configuration/PageTS/TSConfig.ts">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'.$_EXTKEY.'/Configuration/PageTS/mod_wizards.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'.$_EXTKEY.'/Configuration/PageTS/tsconfig.txt">');


/***************
* Configure Themes Constant Editor
*/
if(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('themes')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'.$_EXTKEY.'/Configuration/PageTS/mod_themes.txt">');
}


/***************
Expand All @@ -24,7 +32,7 @@
*/
$settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if($settings['UseRealUrlConfig'] == 1){
@include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php'));
@include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php'));
}


Expand All @@ -40,4 +48,4 @@
'BK2K\\BootstrapPackage\\Service\\InstallService',
'generateApacheHtaccess'
);
}
}
69 changes: 39 additions & 30 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@


/***************
* Default TypoScript
* Load functions only if themes extension is not installed
*
* - let themes handle the includion of the needed static files
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Bootstrap Package');
if(!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('themes')) {

/***************
* Default TypoScript
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Bootstrap Package');

}


/***************
Expand Down Expand Up @@ -483,20 +492,20 @@
'ctrl' => array(
'label' => 'header',
'sortby' => 'sorting',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'title' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/Backend.xlf:carousel_item',
'type' => 'item_type',
'delete' => 'deleted',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'hideAtCopy' => FALSE,
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'languageField' => 'sys_language_uid',
'delete' => 'deleted',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'hideAtCopy' => FALSE,
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'languageField' => 'sys_language_uid',
'dividers2tabs' => TRUE,
'requestUpdate' => 'background_style',
'enablecolumns' => array(
Expand Down Expand Up @@ -566,21 +575,21 @@
$TCA['tx_bootstrappackage_accordion_item'] = array(
'ctrl' => array(
'label' => 'header',
'label_alt' => 'bodytext',
'sortby' => 'sorting',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'title' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/Backend.xlf:accordion_item',
'delete' => 'deleted',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'hideAtCopy' => FALSE,
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'languageField' => 'sys_language_uid',
'label_alt' => 'bodytext',
'sortby' => 'sorting',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'title' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/Backend.xlf:accordion_item',
'delete' => 'deleted',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'hideAtCopy' => FALSE,
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'languageField' => 'sys_language_uid',
'dividers2tabs' => TRUE,
'enablecolumns' => array(
'disabled' => 'hidden',
Expand Down Expand Up @@ -689,4 +698,4 @@
$GLOBALS['TBE_STYLES']['logo_login'] = $settings['LoginLogo'];
$GLOBALS['TBE_STYLES']['htmlTemplates']['EXT:backend/Resources/Private/Templates/login.html'] = 'EXT:bootstrap_package/Resources/Private/Templates/Backend/Login.html';
unset($settings);
}
}
4 changes: 2 additions & 2 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CREATE TABLE tx_bootstrappackage_carousel_item (
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob NOT NULL,
l10n_diffsource mediumblob NOT NULL,

PRIMARY KEY (uid),
KEY parent (pid),
Expand Down Expand Up @@ -106,7 +106,7 @@ CREATE TABLE tx_bootstrappackage_accordion_item (
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob NOT NULL,
l10n_diffsource mediumblob NOT NULL,

PRIMARY KEY (uid),
KEY parent (pid),
Expand Down

0 comments on commit 77414e6

Please sign in to comment.