This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This modifies the outer part of the CKeditor */ | |
.cke_combo__styles .cke_combo_text { width: 150px; } | |
.cke_combo__format .cke_combo_text { width: 150px; } | |
.cke_combopanel { width: 150px !important; } | |
/*********** TYPO3 10 ******************/ | |
/* Closed select field */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Berechnung und Zuweisung zu neuer Variable: | |
✗ {imageWidth / 2.24 -> f:variable(name: 'imageHeight')} | |
✓ {f:variable(name:'imageHeight', value:'{imageWidth / 2.71}')} | |
Casting | |
✗ {imageHeight as integer -> f:variable(name:'imageHeight')} | |
✓ {f:variable(name:'imageHeight',value:'{imageHeight as integer}')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t3version() { | |
[[ -z "$1" ]] && echo "Specify new version parameter!" && return | |
extEmconf=$(git ls-files *ext_emconf.php) | |
if [ ! -z "$extEmconf" ]; then | |
sed -i "s/'version'\(\s*\)=>\(\s*\)'\(.*\)',/'version'\1=>\2'$1',/" $extEmconf | |
git add $extEmconf | |
echo "Updated version in all ext_emconf.php's" | |
fi | |
packageJson=$(git ls-files *package.json) | |
if [ ! -z "$packageJson" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function myAction() | |
{ | |
$contentElement = $this->configurationManager->getContentObject()->data; | |
$this->view->assign('record', $contentElement); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Scan for LLL keys that are not being directly accessed (anymore) | |
# Called like this: t3-lll-scan packages/my_ext/*.xlf | |
t3-lll-scan() { | |
files=$(git ls-files $1) | |
for file in $files | |
do | |
echo "Processing file: $file" | |
labels=$(sed -n -e 's/^\s\+<trans-unit id="\([^"]\+\)".\+$/\1/p' $file) | |
for label in $labels | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor: | |
config: | |
disallowedContent: { | |
'h3 h4 h5': { | |
classes: 'ce-align-left,ce-align-right,ce-align-center' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
libwebp-dev \ | |
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp | |
RUN apt-get install -y \ | |
graphicsmagick \ | |
webp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Me\MyExtension\Domain\Repository; | |
use TYPO3\CMS\Extbase\Persistence\Repository; | |
class CategoryRepository extends Repository | |
{ | |
public function createQuery() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
uid, pid, list_type, | |
ExtractValue(`tt_content`.`pi_flexform`, '//T3FlexForms/data/sheet[@index="sDEF"]/language/field[@index="settings.category"]/value') category, | |
ExtractValue(`tt_content`.`pi_flexform`, '//T3FlexForms/data/sheet[@index="sDEF"]/language/field[@index="settings.special"]/value') special | |
FROM tt_content | |
WHERE | |
CType='list' AND | |
list_type='xxx' AND | |
ExtractValue(`tt_content`.`pi_flexform`, '//T3FlexForms/data/sheet[@index="sDEF"]/language/field[@index="settings.category"]/value') = ''; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor: | |
config: | |
disallowedContent: { | |
table: { | |
styles: 'width,height', | |
attributes: 'border,align,cellspacing,cellpadding' | |
}, | |
td: { | |
styles: 'width,height,white-space,text-align,vertical-align,background-color,border-color' | |
} |