-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Support for TYPO3 ContentBlocks (#32)
Co-authored-by: Daniel Gohlke <[email protected]>
- Loading branch information
1 parent
32ed021
commit 989c20f
Showing
49 changed files
with
625 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/0colDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/0colImageFixWidthDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_imagefixedwidth'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/1col2colDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/1col2colFullWidthDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
...ontainer_example/Test/Fixtures/ContentBlocks/1col2colWidthContainerMultiplierDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
...ures/container_example/Test/Fixtures/ContentBlocks/1col2colWidthContainerSizeDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/1colDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/1colFullWidthDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/2col2colDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/2col_50_50_Database.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
.../Fixtures/container_example/Test/Fixtures/ContentBlocks/2col_66_33_ImageLeft_Database.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
...Fixtures/container_example/Test/Fixtures/ContentBlocks/2col_66_33_ImageRight_Database.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/3colDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][1]['CType'] = 'codappix_image'; | ||
|
||
return $configuration; |
11 changes: 11 additions & 0 deletions
11
Tests/Fixtures/container_example/Test/Fixtures/ContentBlocks/3colImageFixWidthDatabase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$pathinfo = pathinfo(__FILE__); | ||
$path = $pathinfo['dirname'] . '/../Content/' . $pathinfo['basename']; | ||
$configuration = include $path; | ||
|
||
$configuration['tt_content'][2]['CType'] = 'codappix_imagefixedwidth'; | ||
|
||
return $configuration; |
22 changes: 22 additions & 0 deletions
22
Tests/Fixtures/content_blocks_example/Configuration/TSconfig/Page/Backend_Layouts.tsconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mod.web_layout.BackendLayouts { | ||
MainTemplate { | ||
title = MainTemplate | ||
name = MainTemplate | ||
config { | ||
backend_layout { | ||
colCount = 1 | ||
rowCount = 1 | ||
rows { | ||
1 { | ||
columns { | ||
1 { | ||
name = Main Content | ||
colPos = 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...content_blocks_example/Configuration/TypoScript/ContentElements/codappix_image.typoscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
tt_content.codappix_image { | ||
dataProcessing { | ||
100 = Codappix\ResponsiveImages\DataProcessing\ResponsiveImagesProcessor | ||
100 { | ||
fieldName = image | ||
} | ||
} | ||
} | ||
|
||
plugin.tx_responsiveimages { | ||
settings { | ||
contentelements { | ||
codappix_image { | ||
image { | ||
multiplier { | ||
xs = 1 | ||
sm = 1 | ||
md = 1 | ||
lg = 1 | ||
xl = 0.5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ocks_example/Configuration/TypoScript/ContentElements/codappix_imagefixedwidth.typoscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
tt_content.codappix_imagefixedwidth { | ||
dataProcessing { | ||
100 = Codappix\ResponsiveImages\DataProcessing\ResponsiveImagesProcessor | ||
100 { | ||
fieldName = image | ||
} | ||
} | ||
} | ||
|
||
plugin.tx_responsiveimages { | ||
settings { | ||
contentelements { | ||
codappix_imagefixedwidth { | ||
image { | ||
sizes { | ||
xs = 600 | ||
sm = 900 | ||
md = 1200 | ||
lg = 1600 | ||
xl = 1600 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.