Skip to content

Commit

Permalink
[TASK] Improve code and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
misterboe committed Oct 1, 2019
1 parent 308d0c2 commit 67960a7
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 68 deletions.
19 changes: 8 additions & 11 deletions lib/basic/FE_ctype.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://xsd.helhum.io/ns/typo3/cms-fluid/master/ViewHelpers"
data-namespace-typo3-fluid="true">
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />
<f:layout name="Default" />

<f:section name="Main">
<div class="ce-${cename}">
{data.header}
</div>
</f:section>
</div>
<f:section name="Main">
<div class="ce-${cename}">
{data.header}
</div>
</f:section>
</html>
3 changes: 1 addition & 2 deletions lib/basic/_ctype.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ctype SCSS
.ce-${cename} {

// ctype SCSS
}
2 changes: 1 addition & 1 deletion lib/basic/tt_content_ctype.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/***************
* Register fields
*/
$${extname}_${cename}_fields = array();
$${extname}_${cename}_fields = [];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $${extname}_${cename}_fields);

Expand Down
25 changes: 11 additions & 14 deletions lib/irre/FE_ctype.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://xsd.helhum.io/ns/typo3/cms-fluid/master/ViewHelpers"
data-namespace-typo3-fluid="true">
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />
<f:layout name="Default" />

<f:section name="Main">
<div class="ce-${cename}">
{data.header}
<f:for each="{tx_${extname}_${cename}_items}" as="item">
{item.data.header}
</f:for>
</div>
</f:section>
</div>
<f:section name="Main">
<div class="ce-${cename}">
{data.header}
<f:for each="{tx_${extname}_${cename}_items}" as="item">
{item.data.header}
</f:for>
</div>
</f:section>
</html>
3 changes: 1 addition & 2 deletions lib/irre/_ctype.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ctype SCSS
.ce-${cename} {

// ctype SCSS
}
24 changes: 12 additions & 12 deletions lib/irre/tt_content_ctype.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
/***************
* Register fields
*/
$${extname}_${cename}_fields = array(
'tx_${extname}_${cename}' => array(
$${extname}_${cename}_fields = [
'tx_${extname}_${cename}' => [
'exclude' => 0,
'label' => 'Add Item',
'config' => array(
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_${extname}_${cename}',
'foreign_field' => 'tt_content',
'maxitems' => 999,
'appearance' => array(
'appearance' => [
'collapseAll' => true,
'useSortable' => true,
'showSynchronizationLink' => false,
'showAllLocalizationLink' => true,
'showPossibleLocalizationRecords' => false,
'showRemovedLocalizationRecords' => false,
'expandSingle' => true,
'enabledControls' => array(
'enabledControls' => [
'localize' => true,
),
),
'behaviour' => array(
],
],
'behaviour' => [
'mode' => 'select',
'localizeChildrenAtParentLocalization' => true,
),
),
),
);
],
],
],
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $${extname}_${cename}_fields);

Expand Down
4 changes: 2 additions & 2 deletions lib/irre/tx_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@
'type' => 'passthrough'
]
],
'header' => array(
'header' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Headline',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
)
]
],
];
25 changes: 11 additions & 14 deletions lib/mm/FE_ctype.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:f="http://xsd.helhum.io/ns/typo3/cms-fluid/master/ViewHelpers"
data-namespace-typo3-fluid="true">
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />
<f:layout name="Default" />

<f:section name="Main">
<div class="ce-${cename}">
{data.header}
<f:for each="{tx_${extname}_${mmtitleLower}_items}" as="item">
{item.data.header}
</f:for>
</div>
</f:section>
</div>
<f:section name="Main">
<div class="ce-${cename}">
{data.header}
<f:for each="{tx_${extname}_${mmtitleLower}_items}" as="item">
{item.data.header}
</f:for>
</div>
</f:section>
</html>>
3 changes: 1 addition & 2 deletions lib/mm/_ctype.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ctype SCSS
.ce-${cename} {

// ctype SCSS
}
12 changes: 6 additions & 6 deletions lib/mm/tt_content_ctype.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/***************
* Register fields
*/
$${extname}_${cename}_fields = array(
'tx_${extname}_${mmtitleLower}' => Array(
$${extname}_${cename}_fields = [
'tx_${extname}_${mmtitleLower}' => [
'label' => 'Relation',
'config' => Array(
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_${extname}_${mmtitleLower}',
Expand All @@ -25,9 +25,9 @@
'searchCondition' => 'doktype = 1'
]
],
)
),
);
]
],
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $${extname}_${cename}_fields);

Expand Down
4 changes: 2 additions & 2 deletions lib/mm/tx_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@
'type' => 'passthrough'
]
],
'header' => array(
'header' => [
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Headline',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
)
]
],
];

0 comments on commit 67960a7

Please sign in to comment.