Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Perseguers xperseguers

View GitHub Profile
@xperseguers
xperseguers / README.md
Last active Aug 27, 2021
Create composer patch from a pending TYPO3 patch on Gerrit
View README.md

Following structure is expected for your TYPO3 project (adapt script if it differs):

.
├── composer.json
├── composer.lock
├── patches
│   ├── ...
│   └── ...
└── scripts
@xperseguers
xperseguers / flexform_myplugin.xml
Last active Jun 11, 2020
FlexForm for a Plugin with a repeatable section
View flexform_myplugin.xml
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general</sheetTitle>
</TCEforms>
@xperseguers
xperseguers / SingleRecordLocalizationMenu.php
Last active Nov 12, 2019
TypoScript-based language menu only showing available single news localizations
View SingleRecordLocalizationMenu.php
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@xperseguers
xperseguers / InlineRecordContainer.php
Created May 6, 2017
XCLASS to change style of IRRE blocks in FormEngine
View InlineRecordContainer.php
<?php
// This is file EXT:your_ext/Classes/Xclass/Backend/Form/Container/InlineRecordContainer.php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@xperseguers
xperseguers / MyCustomActionBackend.yaml
Last active May 19, 2020
Custom finisher for EXT:form in TYPO3 v8
View MyCustomActionBackend.yaml
# File EXT:your_ext/Configuration/Yaml/MyCustomActionBackend.yaml
TYPO3:
CMS:
Form:
prototypes:
# add our finisher to the 'standard' form prototype
standard:
formElementsDefinition:
Form:
formEditor:
@xperseguers
xperseguers / ContextMenuActions.js
Last active Oct 31, 2019
Disable "delete" in TYPO3 context menu for pages under custom condition
View ContextMenuActions.js
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
@xperseguers
xperseguers / migration_helper.diff
Created Feb 22, 2017
TYPO3 TCA Migration helper
View migration_helper.diff
This patch was tested against TYPO3 v7.
Purpose is to *temporarily and quickly* let you export the migrated TCA to a file within typo3temp/migrated_TCA/<table_name>.migrated.php
so that you may then use any diff tool to compare the migrated TCA of a given table with your own definition.
To run it, just open backend module "Configuration -> TCA". This will automatically dump the whole (migrated) TCA to the disk.
This is not perfect but should help you a lot anyway to go through the various deprecation messages in typo3conf/deprecation_*.log.
Have fun!
@xperseguers
xperseguers / SocialNetworksCell.cs
Last active Nov 24, 2016
SocialNetworksCell to be used with Xamarin.Forms within a TableView
View SocialNetworksCell.cs
#region Using directives
using Xamarin.Forms;
using MyProjectUI.ValueConverters;
using MyProject;
#endregion Using directives
namespace MyProjectUI.Controls
{
@xperseguers
xperseguers / ActionViewHelper.php
Last active Nov 15, 2016
Uri/ActionViewHelper without invoking RealURL
View ActionViewHelper.php
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with TYPO3 source code.
@xperseguers
xperseguers / gist:b9e8cd0bc3bfdad13179
Last active May 2, 2019
Best practices for TYPO3 extension development with Git (or other VCS)
View gist:b9e8cd0bc3bfdad13179

Versioning scheme

Stick to Semantic Versioning.

Releases

The official way of releasing TYPO3 extensions is to the TER, extensions existing solely as Git repositories are NOT properly made available to the community.