Skip to content

Instantly share code, notes, and snippets.

View xperseguers's full-sized avatar

Xavier Perseguers xperseguers

View GitHub Profile

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 / ActionViewHelper.php
Last active November 15, 2016 16:27
Uri/ActionViewHelper without invoking RealURL
<?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 / SocialNetworksCell.cs
Last active November 24, 2016 12:41
SocialNetworksCell to be used with Xamarin.Forms within a TableView
#region Using directives
using Xamarin.Forms;
using MyProjectUI.ValueConverters;
using MyProject;
#endregion Using directives
namespace MyProjectUI.Controls
{
@xperseguers
xperseguers / InlineRecordContainer.php
Created May 6, 2017 16:10
XCLASS to change style of IRRE blocks in FormEngine
<?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 / 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 / migration_helper.diff
Created February 22, 2017 10:54
TYPO3 TCA Migration helper
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 / ContextMenuActions.js
Last active October 31, 2019 17:44
Disable "delete" in TYPO3 context menu for pages under custom condition
/*
* 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 / 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 / MyCustomActionBackend.yaml
Last active May 19, 2020 15:41
Custom finisher for EXT:form in TYPO3 v8
# 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 / 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>