...
  View open merge request
Commits (2)
......@@ -36,7 +36,34 @@ $global_fields = [
'label' => 'Linkname (optional)',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
],
't3o_backcolor' => [
'exclude' => 0,
'label' => 'Background Color',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['None', false],
['Key Color', 'u-bg--key-color'],
['Orange Dark', 'u-bg--stage-orange-dark'],
['Orange Light', 'u-bg--stage-orange-light'],
['Orange Gradient', 'u-bg-gradient--orange'],
['Grey Dark', 'u-bg--dark-grey'],
['Grey Mid', 'u-bg--mid-grey'],
['Grey Light', 'u-bg--light-grey'],
['Grey Super Light', 'u-bg--super-light-grey'],
['Blue', 'u-bg--blue'],
['Blue Dark', 'u-bg--dark-blue'],
['Blue Gradient', 'u-bg-gradient--blue'],
['Green', 'u-bg--green'],
['Green Dark', 'u-bg--dark-green'],
['Green Gradient', 'u-bg-gradient--green'],
['Information', 'u-bg--information'],
['Error', 'u-bg--error'],
['Warning', 'u-bg--warning'],
]
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $global_fields);
......@@ -54,6 +81,8 @@ $subpagesmenu = [
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 't3o_boxlayout', 'menu_subpages', 'after:colPos');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', '--div--;Style,t3o_backcolor');
//Commented out because of Issue https://git-t3o.typo3.org/t3o/t3olayout/merge_requests/318
//$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['itemsProcFunc'] = \T3o\T3olayout\Backend\View\CTypeSelectView::class . '->cTypeItemProcFunc';
//$GLOBALS['TCA']['tt_content']['columns']['colPos']['config']['itemsProcFunc'] = \T3o\T3olayout\Backend\View\BackendLayoutView::class . '->colPosListItemProcFunc';
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:spaceless>
<section class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container')}">
<section class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container {data.t3o_backcolor}')}">
<f:if condition="{data.frame_class} != none">
<f:then>
<div id="c{data.uid}" class="frame frame-{data.frame_class} frame-type-{data.CType} frame-layout-{data.layout}{f:if(condition: data.space_before_class, then: ' frame-space-before-{data.space_before_class}')}{f:if(condition: data.space_after_class, then: ' frame-space-after-{data.space_after_class}')}">
<f:if condition="{data._LOCALIZED_UID}">
<a id="c{data._LOCALIZED_UID}"></a>
......@@ -25,7 +24,6 @@
</f:then>
<f:else>
<a id="c{data.uid}"></a>
<f:if condition="{data._LOCALIZED_UID}">
<a id="c{data._LOCALIZED_UID}"></a>
......
......@@ -15,7 +15,7 @@
<f:variable name="colSize">col-md-3</f:variable>
</f:case>
</f:switch>
<section class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container')}">
<section class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container {data.t3o_backcolor}')}">
<div class="frame frame-default frame-type-image frame-layout-0" id="c{data.uid}">
<div class="ce-image ce-{gallery.position.horizontal} ce-{gallery.position.vertical}">
<div class="ce-gallery{f:if(condition: data.imageborder, then: ' ce-border')}" data-ce-columns="{gallery.count.columns}" data-ce-images="{gallery.count.files}">
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault"/>
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="menu-abstract">
<f:for each="{menu}" as="page">
<li>
......
......@@ -3,7 +3,7 @@
<f:section name="Main">
<f:if condition="{content}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-categorizedcontent">
<f:for each="{content}" as="element">
<li>
......
......@@ -3,7 +3,7 @@
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-categorizedpages">
<f:for each="{menu}" as="page">
<li>
......
......@@ -3,7 +3,7 @@
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-pages">
<f:for each="{menu}" as="page">
<li>
......
......@@ -3,7 +3,7 @@
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-recentlyupdated">
<f:for each="{menu}" as="page">
<li>
......
......@@ -3,7 +3,7 @@
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-relatedpages">
<f:for each="{menu}" as="page">
<li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault" />
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-section">
<f:for each="{menu}" as="page">
<li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault" />
<f:section name="Main">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-sectionpages">
<f:for each="{menu}" as="page">
<li>
......@@ -26,6 +25,5 @@
</ul>
</div>
</f:if>
</f:section>
</html>
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault" />
<f:section name="Main">
<f:render section="Menu" arguments="{menu: menu}" />
</f:section>
<f:section name="Menu">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-sitemap">
<f:for each="{menu}" as="page">
<li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault" />
<f:section name="Main">
<f:render section="Menu" arguments="{menu: menu}" />
</f:section>
<f:section name="Menu">
<f:if condition="{menu}">
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-sitemappages">
<f:for each="{menu}" as="page">
<li>
......
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/CustomDefault" />
<f:section name="Main">
<f:if condition="{menu}">
<f:if condition="{data.t3o_boxlayout}">
<f:then>
<div class="container">
<div class="container {data.t3o_backcolor}">
<div class="row">
<f:for each="{menu}" as="page">
<div class="col-md-4">
......@@ -30,7 +27,7 @@
</div>
</f:then>
<f:else>
<div class="container">
<div class="container {data.t3o_backcolor}">
<ul class="ce-menu ce-menu-subpages">
<f:for each="{menu}" as="page">
<li>
......@@ -44,6 +41,5 @@
</f:else>
</f:if>
</f:if>
</f:section>
</html>
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="ContentElements/Default" />
<f:section name="Main">
<f:format.html>{data.bodytext}</f:format.html>
</f:section>
</html>
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">
<div class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container')}">
<div class="{f:if(condition: '{data.frame_class} >= 200', then: '{f:render(partial: \'ContentElements/CardClasses\', arguments:_all) -> f:spaceless()}', else: 'container {data.t3o_backcolor}')}">
<div id="c{data.uid}">
<f:if condition="{gallery.position.vertical} === above || {gallery.position.vertical} === below">
<f:then>
......@@ -17,7 +17,8 @@
<f:if condition="{gallery.position.noWrap} != 1">
<f:render partial="Header/All" arguments="{_all}" />
</f:if>
<div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')} row">
<div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')}{f:if(condition: '{gallery.position.vertical} == intext && {gallery.position.noWrap} != 0', then: ' row')}">
<f:if condition="{gallery.position.vertical} === above">
<f:render section="media" arguments="{_all}" />
</f:if>
......@@ -33,21 +34,40 @@
</f:section>
<f:section name="text">
<f:if condition="{gallery.position.vertical} === intext && {gallery.position.horizontal} === left">
<f:render section="media" arguments="{_all}" />
</f:if>
<f:if condition="{gallery.position.vertical} === intext">
<f:then>
<f:if condition="{gallery.position.noWrap}">
<f:then>
<f:if condition="{gallery.position.horizontal} === left">
<f:render section="media" arguments="{_all}" />
</f:if>
<f:render section="bodytext" arguments="{_all}" />
<f:if condition="{gallery.position.horizontal} === right">
<f:render section="media" arguments="{_all}" />
</f:if>
</f:then>
<f:else>
<f:render section="media" arguments="{_all}" />
<f:render section="bodytext" arguments="{_all}" />
</f:else>
</f:if>
</f:then>
<f:else>
<f:render section="bodytext" arguments="{_all}" />
</f:else>
</f:if>
</f:section>
<f:section name="media">
<f:render partial="Media/Gallery" arguments="{_all}" />
</f:section>
<f:section name="bodytext">
<div class="ce-bodytext {textCol}">
<f:if condition="{gallery.position.noWrap}">
<f:render partial="Header/All" arguments="{_all}" />
</f:if>
{data.bodytext -> f:format.html()}
</div>
<f:if condition="{gallery.position.vertical} === intext && {gallery.position.horizontal} === right">
<f:render section="media" arguments="{_all}" />
</f:if>
</f:section>
<f:section name="media">
<f:render partial="Media/Gallery" arguments="{_all}" />
</f:section>
</html>
......@@ -19,6 +19,7 @@ CREATE TABLE pages (
CREATE TABLE tt_content (
t3o_bodytext_2 text,
t3o_linkname VARCHAR(255) DEFAULT '' NOT NULL,
t3o_backcolor VARCHAR(255) DEFAULT '' NOT NULL,
t3o_svgicon int(11) DEFAULT '0' NOT NULL,
t3o_textwithteaser_position VARCHAR(255) DEFAULT '' NOT NULL,
......