diff --git a/Classes/ViewHelpers/GetVersionViewHelper.php b/Classes/ViewHelpers/GetVersionViewHelper.php new file mode 100644 index 0000000..388d72e --- /dev/null +++ b/Classes/ViewHelpers/GetVersionViewHelper.php @@ -0,0 +1,26 @@ +getMajorVersion(); + } +} diff --git a/Configuration/TSconfig/Page/maxitems.tsconfig b/Configuration/TSconfig/Page/maxitems.tsconfig index eb1b892..f4eadb0 100644 --- a/Configuration/TSconfig/Page/maxitems.tsconfig +++ b/Configuration/TSconfig/Page/maxitems.tsconfig @@ -1,2 +1,2 @@ -templates.typo3/cms-backend.100 = ichhabrecht/content-defender:Resources/Private/ +templates.typo3/cms-backend.100 = ichhabrecht/content-defender:Resources/Private/Backend/ diff --git a/Configuration/TypoScript/constants.typoscript b/Configuration/TypoScript/constants.typoscript index 42f7ad8..fee1fa6 100644 --- a/Configuration/TypoScript/constants.typoscript +++ b/Configuration/TypoScript/constants.typoscript @@ -1,10 +1,10 @@ module.tx_contentdefender { view { # cat=plugin.tx_contentdefender/file; type=string; label=Path to template root - templateRootPath = EXT:content_defender/Resources/Private/Templates/Backend/ + templateRootPath = EXT:content_defender/Resources/Private/Backend/Templates/ # cat=plugin.tx_contentdefender/file; type=string; label=Path to template partials - partialRootPath = EXT:content_defender/Resources/Private/Partials/Backend/ + partialRootPath = EXT:content_defender/Resources/Private/Backend/Partials/ # cat=plugin.tx_contentdefender/file; type=string; label=Path to template layouts - layoutRootPath = EXT:content_defender/Resources/Private/Layouts/Backend/ + layoutRootPath = EXT:content_defender/Resources/Private/Backend/Layouts/ } } diff --git a/Resources/Private/Backend/Partials/PageLayout/Grid/ColumnHeader.html b/Resources/Private/Backend/Partials/PageLayout/Grid/ColumnHeader.html new file mode 100644 index 0000000..2158fe1 --- /dev/null +++ b/Resources/Private/Backend/Partials/PageLayout/Grid/ColumnHeader.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + + {f:if(condition: '{maxitems} > 99', then: '+99', else: '{maxitems}')} + + + +
+
+
+ + diff --git a/Resources/Private/Partials/Backend/PageLayout/Record.html b/Resources/Private/Backend/Partials/PageLayout/Record.html similarity index 50% rename from Resources/Private/Partials/Backend/PageLayout/Record.html rename to Resources/Private/Backend/Partials/PageLayout/Record.html index fb58f21..6915b6c 100644 --- a/Resources/Private/Partials/Backend/PageLayout/Record.html +++ b/Resources/Private/Backend/Partials/PageLayout/Record.html @@ -3,7 +3,18 @@ data-namespace-typo3-fluid="true"> -
+ + + + + + + + + + + +
diff --git a/Resources/Private/Partials/Backend/PageLayout/Grid/ColumnHeader.html b/Resources/Private/Partials/Backend/PageLayout/Grid/ColumnHeader.html deleted file mode 100644 index ea815f5..0000000 --- a/Resources/Private/Partials/Backend/PageLayout/Grid/ColumnHeader.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -
- - - - {maxitems} - - - {maxitems} - - - {maxitems} - - - -
-
-
- - diff --git a/Resources/Public/Css/backend.css b/Resources/Public/Css/backend.css index f0582c5..c2c9ce2 100644 --- a/Resources/Public/Css/backend.css +++ b/Resources/Public/Css/backend.css @@ -1,34 +1,37 @@ @charset "UTF-8"; -.t3-cd-badge-container { - position: relative; +.t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, +.t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { + display: none; } -.t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, -.t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { - display: none; +body[style="cursor: move;"] .t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, +body[style="cursor: move;"].t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { + display: block; + visibility: hidden; } -.t3-cd-badge { - position: absolute; - left: 0; - top: 0; - transform: translate(-50%, 0); - background-color: #ff0000; - z-index: 100; +.t3-cd-badge-container:not([data-maxitems="-1"]).t3-cd-badge-container-length-1 .t3-page-column-header { + padding-left: 25px; } -.t3-cd-badge.text-bg-success { - background-color: #107c10; - color: #ffffff; +.t3-cd-badge-container:not([data-maxitems="-1"]).t3-cd-badge-container-length-2 .t3-page-column-header { + padding-left: 30px; } -.t3-cd-badge.text-bg-warning { - background-color: #e8a33d; - color: #ffffff; +.t3-cd-badge-container:not([data-maxitems="-1"]).t3-cd-badge-container-length-3 .t3-page-column-header { + padding-left: 40px; } -.t3-cd-badge.text-bg-danger { - background-color: #ff0000; - color: #ffffff; +.t3-cd-badge-container { + position: relative; +} + +.t3-cd-badge { + position: absolute; + z-index: 1; + left: 0; + top: 21px; + background-color: #eaeaea; + color: #000000; } diff --git a/Resources/Public/Css/backend_v12.css b/Resources/Public/Css/backend_v12.css new file mode 100644 index 0000000..2dd2ba2 --- /dev/null +++ b/Resources/Public/Css/backend_v12.css @@ -0,0 +1,5 @@ +.t3-cd-badge-container .t3-cd-badge{ + background-color: #c6bebe; + left: 1rem; + top: 0; +} \ No newline at end of file