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
prototype(TYPO3.Neos.NodeTypes:Text) { | |
number = ${q(node).property('number')} | |
@override.number = ${this.number} | |
#override makes it possible to insert number to class - as this.number wouldn't work here: | |
attributes.class.@process.addNumber = ${value + ' number-' + number} | |
} |
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 | |
name SOME\NAMESPACE; | |
class StringContainsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { | |
/** | |
* Returns true depending on $needle in $haystack and which mode is chosen | |
* @param string $haystack | |
* @param string $needle | |
* @param string $mode - contains, beginsWith, endsWith |
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
#create folder | |
curl -u me@email.com:mypassword -X MKCOL "https://dav.box.com/dav/remote_foldername" | |
#upload | |
curl -u me@email.com:mypassword -T local_file_path https://dav.box.com/dav/remote_file_name | |
#download | |
curl -u me@email.com:mypassword https://dav.box.com/dav/remote_file_name --output download_file_path |
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
1. Copy your extension to `[web/]typo3conf/ext/` of your composer mode TYPO3 (or kickstart one with extension_builder). | |
2. Add autoload entry to your root composer.json (that one which requires "typo3/cms") | |
```json | |
"autoload": { | |
"psr-4": { | |
"T3easy\\MyExt\\": "web/typo3conf/ext/my_ext/Classes/" | |
} | |
} | |
``` | |
3. Run `composer dump-autoload -a` to update the autoloader. |
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
--- public/typo3/sysext/fluid_styled_content/Resources/Private/Partials/Header/Header.html (date 1566293615000) | |
+++ public/typo3/sysext/fluid_styled_content/Resources/Private/Partials/Header/Header.html (date 1566293615000) | |
@@ -38,7 +38,7 @@ | |
<f:if condition="{default}"> | |
<f:render partial="Header/Header" arguments="{ | |
header: header, | |
- layout: default, | |
+ layout: '{f:cObject(typoscriptObjectPath:\'lib.contentElement.cObjects.defaultHeaderType\')}', | |
positionClass: positionClass, | |
link: link}" /> |