Skip to content

Instantly share code, notes, and snippets.

View dacostafilipe's full-sized avatar

DA COSTA Filipe dacostafilipe

View GitHub Profile
@dacostafilipe
dacostafilipe / richtextConfiguration.md
Created August 30, 2018 15:04
Add "richtextConfiguration" to flux < 9
  1. Extend \FluidTYPO3\Flux\Form\Field\Text
	class Text extends \FluidTYPO3\Flux\Form\Field\Text
	{
		
		/**
		 * @var string
		 */
It's not from Youtube ... it's the author that did it!
Really!!!!
for PhiPhi

Because fluidcontent is not supported anymore, we need to migrate to flux only usage for our content elements. We will also update flux to version 9.1.0 at the same time to improve performance.

Prepare Database

Before starting the migration process, we need to make changes to the database because some fields will be removed latter on.

When using fluidcontent the CType field of CEs is always fluidcontent_content and the right module is chosen via the tx_fed_fcefile field. With flux, tx_fed_fcefile is not used anymore but instead every CE has it's own CType.

flux expects following syntax for CType:

@dacostafilipe
dacostafilipe / add-to-exports.sh
Created February 14, 2019 15:01
Add application directory to "/etc/exports" on macOS
#!/usr/bin/env bash
# Inspired by : https://raw.githubusercontent.com/drud/ddev/master/scripts/macos_ddev_nfs_setup.sh
# Move to script folder
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR;
OS=$(uname -s)
@dacostafilipe
dacostafilipe / ddev.sh
Last active April 4, 2019 13:46
bitbar Plugin for ddev
#!/bin/bash
# Display status of DDEV configs
#
#
# <bitbar.title>DDEV List</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>DA COSTA Filipe</bitbar.author>
#
@dacostafilipe
dacostafilipe / Map.js
Created May 17, 2019 09:47
themarcba/simple-rpg
export default class Map {
/**
*
* @param fields
*/
constructor(fields) {
this.fields = fields;
@dacostafilipe
dacostafilipe / ddev.20s.php
Last active September 5, 2022 15:28
DDEV bitbar script
#!/usr/local/bin/php
<?php
# Metadata allows your plugin to show up in the app, and website.
#
# <xbar.title>DDEV Bar</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Filipe DA COSTA</xbar.author>
# <xbar.author.github>https://github.com/dacostafilipe</xbar.author.github>