Skip to content

Instantly share code, notes, and snippets.

View xperseguers's full-sized avatar

Xavier Perseguers xperseguers

View GitHub Profile
@xperseguers
xperseguers / gist:b9e8cd0bc3bfdad13179
Last active May 2, 2019 08:14
Best practices for TYPO3 extension development with Git (or other VCS)

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.

@xperseguers
xperseguers / ext_tables.php
Last active April 26, 2024 19:33
Generic override XLIFF in TYPO3 CMS
<?php
/**
* Following snippet lets you easily override XLIFF-based localization files for any extension.
*
* Create localization files within your extension in:
*
* Resources/Private/Language/Overrides/<extension-key>.<original-name>.xlf
* Resources/Private/Language/Overrides/<locale>.<extension-key>.<original-name>.xlf
*

Keybase proof

I hereby claim:

  • I am xperseguers on github.
  • I am xperseguers (https://keybase.io/xperseguers) on keybase.
  • I have a public key whose fingerprint is 7A33 A3A4 82E7 4987 4933 1D54 73C8 525C 2314 C530

To claim this, I am signing this object:

@xperseguers
xperseguers / controller.php
Last active April 4, 2023 07:56
Upload files in TYPO3 from Frontend
/**
* Upload files.
*
* @return void
*/
public function uploadAction() {
$overwriteExistingFiles = TRUE;
$data = array();
$namespace = key($_FILES);