Skip to content

Commit

Permalink
Merge pull request #403 from t3solution/5.3.15
Browse files Browse the repository at this point in the history
Bugfix release v5.3.15
  • Loading branch information
t3solution authored Aug 21, 2024
2 parents e743c30 + 3d4b952 commit 146b434
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 40 deletions.
11 changes: 6 additions & 5 deletions Classes/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ public function newAction(): ResponseInterface
$assignedOptions['newConfig'] = parent::getNewConfig($this->rootConfig);
}
} else {
$newConfig = new Config();
// some defaults
$newConfig = parent::setDefaults($newConfig);
$this->configRepository->add($newConfig);
return $this->redirect('create');
}

return $this->redirect('list', null, null, ['created' => true]);
Expand All @@ -173,10 +170,14 @@ public function newAction(): ResponseInterface
/**
* action create
*/
public function createAction(Config $newConfig): ResponseInterface
public function createAction(Config $newConfig = null): ResponseInterface
{
if (empty($newConfig)) {
$newConfig = new Config();
}
$newConfig->setHomepageUid($this->rootPageId);
$newConfig->setPid($this->currentUid);
$newConfig = parent::setDefaults($newConfig);
$this->configRepository->add($newConfig);
parent::setDefaultBackendLayout();
parent::writeConstants();
Expand Down
68 changes: 34 additions & 34 deletions Configuration/TCA/Overrides/tt_content_newCType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,88 +28,88 @@
'tt_content',
'CType',
[
'Plain CSS or JavaScript inline',
't3sbs_assets',
'cssJsIcon',
'label' => 'Plain CSS or JavaScript inline',
'value' => 't3sbs_assets',
'icon' => 'cssJsIcon',
'group' => 'special',
'description' => 'With this element you can insert raw JS or CSS code on the page.'
'description' => 'With this element you can insert raw JS or CSS code on the page.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Media object',
't3sbs_mediaobject',
'content-beside-text-img-left',
'label' => 'Bootstrap Media object',
'value' => 't3sbs_mediaobject',
'icon' => 'content-beside-text-img-left',
'group' => 'T3S Bootstrap',
'description' => 'The media object helps build complex and repetitive components where some media is positioned alongside content that doesn’t wrap around said media.'
'description' => 'The media object helps build complex and repetitive components where some media is positioned alongside content that doesn’t wrap around said media.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Card',
't3sbs_card',
'content-card',
'label' => 'Bootstrap Card',
'value' => 't3sbs_card',
'icon' => 'content-card',
'group' => 'T3S Bootstrap',
'description' => 'A card is a flexible and extensible content container.'
'description' => 'A card is a flexible and extensible content container.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Toasts',
't3sbs_toast',
'content-widget-calltoaction',
'label' => 'Bootstrap Toasts',
'value' => 't3sbs_toast',
'icon' => 'content-widget-calltoaction',
'group' => 'T3S Bootstrap',
'description' => 'Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.'
'description' => 'Push notifications to your visitors with a toast, a lightweight and easily customizable alert message.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Carousel Item (in carousel- or swiper-container)',
't3sbs_carousel',
'content-carousel-item-textandimage',
'label' => 'Bootstrap Carousel Item (in carousel- or swiper-container)',
'value' => 't3sbs_carousel',
'icon' => 'content-carousel-item-textandimage',
'group' => 'T3S Bootstrap',
'description' => 'A slideshow component for cycling through elements—images or slides of text—like a carousel.'
'description' => 'A slideshow component for cycling through elements—images or slides of text—like a carousel.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Button',
't3sbs_button',
'form-radio-button',
'label' => 'Bootstrap Button',
'value' => 't3sbs_button',
'icon' => 'form-radio-button',
'group' => 'T3S Bootstrap',
'description' => 'Bootstrap includes several predefined button styles, each serving its own semantic purpose.'
'description' => 'Bootstrap includes several predefined button styles, each serving its own semantic purpose.',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Fluidtemplate',
't3sbs_fluidtemplate',
'actions-template-new',
'label' => 'Fluidtemplate',
'value' => 't3sbs_fluidtemplate',
'icon' => 'actions-template-new',
'group' => 'T3S Bootstrap',
'description' => 'LLL:EXT:t3sbootstrap/Resources/Private/Language/locallang_be.xlf:t3sbs_fluidtemplate'
'description' => 'LLL:EXT:t3sbootstrap/Resources/Private/Language/locallang_be.xlf:t3sbs_fluidtemplate',
]
);
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Bootstrap Image Gallery',
't3sbs_gallery',
'apps-filetree-folder-media',
'label' => 'Bootstrap Image Gallery',
'value' => 't3sbs_gallery',
'icon' => 'apps-filetree-folder-media',
'group' => 'T3S Bootstrap',
'description' => 'LLL:EXT:t3sbootstrap/Resources/Private/Language/locallang_be.xlf:t3sbsgallery.description'
'description' => 'LLL:EXT:t3sbootstrap/Resources/Private/Language/locallang_be.xlf:t3sbsgallery.description',
]
);

Expand Down Expand Up @@ -833,15 +833,15 @@
'config' => [
'type' => 'text',
'format' => 'javascript',
'renderType' => 'codeEditor',
'renderType' => 't3editor',
'wrap' => 'virtual',
'rows' => 15,
],
],
'tx_t3sbootstrap_bodytext' => [
'config' => [
'type' => 'text',
'renderType' => 'codeEditor',
'renderType' => 't3editor',
'format' => 'css',
'rows' => 15,
'wrap' => 'virtual',
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'Bootstrap Components',
'description' => 'Startup extension to use bootstrap 5 classes, components and more out of the box. Example and info: www.t3sbootstrap.de',
'category' => 'templates',
'version' => '5.3.14',
'version' => '5.3.15',
'state' => 'stable',
'author' => 'Helmut Hackbarth',
'author_email' => 'typo3@t3solution.de',
Expand Down

0 comments on commit 146b434

Please sign in to comment.