Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
[TASK] Allow TYPO3 13.4
[TASK] Introduce site sets
  • Loading branch information
oliverschloebe committed Jan 3, 2025
1 parent fb9391b commit 3ea4586
Show file tree
Hide file tree
Showing 19 changed files with 73 additions and 85 deletions.
8 changes: 8 additions & 0 deletions Configuration/Icons.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [
'jnphpcontentelement-plugin-phpcelist' => [
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
'source' => 'EXT:jn_phpcontentelement/Resources/Public/Icons/Extension.png'
],
];
2 changes: 2 additions & 0 deletions Configuration/Sets/Phpcontentelement/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: joppnet/jn-phpcontentelement
label: "[joppnet] PHP Content Element"
1 change: 1 addition & 0 deletions Configuration/Sets/Phpcontentelement/constants.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:jn_phpcontentelement/Configuration/TypoScript/constants.typoscript'
1 change: 1 addition & 0 deletions Configuration/Sets/Phpcontentelement/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:jn_phpcontentelement/Configuration/TypoScript/setup.typoscript'
Original file line number Diff line number Diff line change
Expand Up @@ -10,97 +10,78 @@
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'translationSource' => 'l10n_source',
'delete' => 'deleted',
'enablecolumns' => [
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
],
'security' => [
'ignorePageTypeRestriction' => true,
],
'searchFields' => 'name,phpcontent',
'iconfile' => 'EXT:jn_phpcontentelement/Resources/Public/Icons/Extension.png'
'iconfile' => 'EXT:jn_phpcontentelement/Resources/Public/Icons/Extension.png',
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, phpcontent',
],
'types' => [
'1' => ['showitem' => 'name, phpcontent, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:sys_language_uid_formlabel, sys_language_uid, l10n_parent, l10n_diffsource, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, hidden, starttime, endtime'],
'1' => ['showitem' => 'name, phpcontent, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, sys_language_uid, l10n_parent, l10n_diffsource, --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, hidden, starttime, endtime'],
],
'columns' => [
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'special' => 'languages',
'items' => [
[
'LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages',
-1,
'flags-multiple'
]
],
'default' => 0,
'type' => 'language',
],
],
'l10n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => true,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
['', 0],
],
'foreign_table' => 'tx_jnphpcontentelement_domain_model_jnphpcontent',
'foreign_table_where' => 'AND tx_jnphpcontentelement_domain_model_jnphpcontent.pid=###CURRENT_PID### AND tx_jnphpcontentelement_domain_model_jnphpcontent.sys_language_uid IN (-1,0)',
'type' => 'group',
'allowed' => 'tx_jnphpcontentelement_domain_model_jnphpcontent',
'size' => 1,
'maxitems' => 1,
'minitems' => 0,
'default' => 0,
],
],
'l10n_diffsource' => [
'l10n_source' => [
'config' => [
'type' => 'passthrough',
],
],
't3ver_label' => [
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'l10n_diffsource' => [
'config' => [
'type' => 'input',
'size' => 30,
'max' => 255,
'type' => 'passthrough',
'default' => '',
],
],
'hidden' => [
'exclude' => true,
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
'config' => [
'type' => 'check',
'default' => 0
]
'renderType' => 'checkboxToggle',
'default' => 0,
],
],
'starttime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel',
'config' => [
'type' => 'input',
'size' => 13,
'eval' => 'datetime',
'default' => 0,
'type' => 'datetime',
],
],
'endtime' => [
'exclude' => true,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel',
'config' => [
'type' => 'input',
'size' => 13,
'eval' => 'datetime',
'default' => 0,
'range' => [
'upper' => mktime(0, 0, 0, 1, 1, 2038)
],
'type' => 'datetime',
],
],
'name' => [
Expand Down
17 changes: 17 additions & 0 deletions Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
mod {
wizards.newContentElement.wizardItems {
plugins {
elements {
phpcelist {
iconIdentifier = jnphpcontentelement-plugin-phpcelist
title = LLL:EXT:jn_phpcontentelement/Resources/Private/Language/locallang_db.xlf:tx_jn_phpcontentelement_phpcelist.name
description = LLL:EXT:jn_phpcontentelement/Resources/Private/Language/locallang_db.xlf:tx_jn_phpcontentelement_phpcelist.description
tt_content_defValues {
CType = list
list_type = jnphpcontentelement_phpcelist
}
}
}
}
}
}
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Configuration/page.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:jn_phpcontentelement/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Latest Stable Version](https://poser.pugx.org/joppnet/jn_phpcontentelement/v/stable.svg)](https://extensions.typo3.org/extension/jn_phpcontentelement/)
[![TYPO3 13](https://img.shields.io/badge/TYPO3-13-orange.svg)](https://get.typo3.org/version/13)
[![TYPO3 12](https://img.shields.io/badge/TYPO3-12-orange.svg)](https://get.typo3.org/version/12)
[![TYPO3 11](https://img.shields.io/badge/TYPO3-11-orange.svg)](https://get.typo3.org/version/11)
[![TYPO3 10](https://img.shields.io/badge/TYPO3-10-orange.svg)](https://get.typo3.org/version/10)
Expand Down
Binary file modified Resources/Public/Icons/Extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Public/Manual/manual-ce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Public/Manual/manual-record-storage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Public/Manual/manual-record.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"GPL-2.0-or-later"
],
"require" : {
"typo3/cms-core" : "^12.4"
"typo3/cms-core" : "^12.4 || ^13.4"
},
"autoload" : {
"psr-4" : {
Expand Down
23 changes: 10 additions & 13 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,29 @@
/***************************************************************
* Extension Manager/Repository config file for ext "jn_phpcontentelement".
*
* Auto generated 29-10-2021 09:39
*
* Manual updates:
* Only the data in the array - everything else is removed by next
* writing. "version" and "dependencies" must not be touched!
***************************************************************/

$EM_CONF['jn_phpcontentelement'] = [
'title' => '[joppnet] PHP Content Elements',
'title' => '[joppnet] PHP Content Element',
'description' => 'PHP content elements via frontend plugin.',
'category' => 'plugin',
'version' => '1.3.0',
'version' => '1.3.5',
'state' => 'stable',
'uploadfolder' => false,
'clearcacheonload' => true,
'author' => 'Oliver Schlöbe',
'author_email' => 'oschloebe@joppnet.de',
'author_company' => 'joppnet',
'constraints' =>
array(
'depends' => array(
'typo3' => '12.0.0-12.4.99',
),
'suggests' => array(
'constraints' => [
'depends' => [
'typo3' => '12.0.0-13.4.99',
],
'suggests' => [
't3editor' => '9.0.0-0.0.0',
),
'conflicts' => array(),
),
],
'conflicts' => [],
],
];
28 changes: 6 additions & 22 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

defined('TYPO3') or die();

(function () {
$iconIdentifier = 'jn_phpcontentelement-plugin-phpcelist';
$boot = static function (): void {
$iconIdentifier = 'jnphpcontentelement-plugin-phpcelist';

ExtensionUtility::configurePlugin(
'JnPhpcontentelement',
Expand All @@ -19,25 +19,6 @@
]
);

ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
phpcelist {
iconIdentifier = ' . $iconIdentifier . '
title = LLL:EXT:jn_phpcontentelement/Resources/Private/Language/locallang_db.xlf:tx_jn_phpcontentelement_phpcelist.name
description = LLL:EXT:jn_phpcontentelement/Resources/Private/Language/locallang_db.xlf:tx_jn_phpcontentelement_phpcelist.description
tt_content_defValues {
CType = list
list_type = jnphpcontentelement_phpcelist
}
}
}
show = *
}
}'
);

$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
if (!$iconRegistry->isRegistered($iconIdentifier)) {
$iconRegistry->registerIcon(
Expand All @@ -46,4 +27,7 @@
['source' => 'EXT:jn_phpcontentelement/Resources/Public/Icons/Extension.png']
);
}
})();
};

$boot();
unset($boot);
5 changes: 0 additions & 5 deletions ext_tables.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<?php
defined('TYPO3') or die();

call_user_func(
function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_jnphpcontentelement_domain_model_jnphpcontent');
}
);

0 comments on commit 3ea4586

Please sign in to comment.