Skip to content

Instantly share code, notes, and snippets.

View xperseguers's full-sized avatar

Xavier Perseguers xperseguers

View GitHub Profile
@xperseguers
xperseguers / SingleRecordLocalizationMenu.php
Last active November 12, 2019 16:37
TypoScript-based language menu only showing available single news localizations
<?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 / flexform_myplugin.xml
Last active June 11, 2020 07:38
FlexForm for a Plugin with a repeatable section
<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 / README.md
Last active March 23, 2024 18:21
Create composer patch from a pending TYPO3 patch on Gerrit

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

.
├── composer.json
├── composer.lock
├── patches
│   ├── ...
│   └── ...
└── scripts
@xperseguers
xperseguers / README.md
Last active December 22, 2023 09:52
Migrate from Pootle to Crowdin

Migrate your project from Pootle to Crowdin

Step 1: Choose extensions to migrate

I have a few extensions of mine on Pootle and I decided to migrate those:

  • cloudflare
  • direct_mail_userfunc
  • file_list
  • ig_ldap_sso_auth