Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Perseguers xperseguers

View GitHub Profile
@xperseguers
xperseguers / README.md
Last active December 6, 2022 07:05
Migrate from Pootle to Crowdin
View README.md
@xperseguers
xperseguers / README.md
Last active April 20, 2022 14:14
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 June 11, 2020 07:38
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 November 12, 2019 16:37
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 16:10
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 15:41
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 October 31, 2019 17:44
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 February 22, 2017 10:54
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 November 24, 2016 12:41
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 November 15, 2016 16:27
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.