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
<f:form action="upload" enctype="multipart/form-data"> | |
<f:form.upload name="resources[]" additionalAttributes="{multiple: true}" /> | |
<f:form.submit value="Upload new resources"/> | |
</f:form> |
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.0.tgz | |
tar xvzf imagick-3.4.0.tgz |
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
# Redis (has to be configured to different databases on shared hosting) | |
TYPO3_TypoScript_Content: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
defaultLifetime: 0 | |
Flow_Mvc_Routing_Resolve: | |
backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
backendOptions: | |
defaultLifetime: 0 |
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
{namespace media=TYPO3\Media\ViewHelpers} | |
<media:image | |
additionalAttributes="{srcset: '{media:uri.image(image: image, maximumWidth: 400)} 2x, | |
{media:uri.image(image: image, maximumWidth: 200)} 1x'}" | |
asset="{image}" | |
alt="{alternativeText}" | |
title="{title}" | |
maximumWidth="200" /> |
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(Page) { | |
head.stylesheets.backend = TYPO3.TypoScript:Tag { | |
tagName = 'link' | |
attributes { | |
rel = 'stylesheet' | |
href = TYPO3.TypoScript:ResourceUri { | |
package = 'Venstre.VenstreDk' | |
path = 'Styles/Backend.css' | |
} | |
} |
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
function reloadCards() { | |
var cardsContainer = $('.cards'); | |
if (cardsContainer.data('masonry')) { | |
cardsContainer.masonry('reloadItems').masonry('layout'); | |
} | |
} | |
function initializeResize(elements) { | |
elements.resize(function() { | |
var cardsContainer = $('.cards'); |
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
a = TYPO3.TypoScript:UriBuilder { | |
package = 'TYPO3.Neos' | |
controller = 'Frontend\\Node' | |
action = 'show' | |
arguments.node = ${node} | |
} | |
b = ${'node://' + node.identifier} | |
b.@process.convertUris = TYPO3.Neos:ConvertUris |