This is how StandardContentPreviewRenderer works in v13:
- either provide the path to a template file:
mod.web_layout.tt_content.preview {
my_content_type = EXT:my_extension/Resources/Private/Templates/Preview/MyContentType.html
}
| #!/bin/bash | |
| # TYPO3 Log Tail Formatter | |
| # Formats TYPO3 log files with custom column rendering | |
| # Parse arguments | |
| COMPACT=false | |
| LOG_PATH="" | |
| MAX_LINES="" | |
| JQ_FILTER="." |
This is how StandardContentPreviewRenderer works in v13:
mod.web_layout.tt_content.preview {
my_content_type = EXT:my_extension/Resources/Private/Templates/Preview/MyContentType.html
}
| #!/bin/bash | |
| # Current scripts folder (incl. resolving symlinks) | |
| SCRIPT_DIR="$( cd -P "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )" | |
| echo "This script lives in $SCRIPT_DIR and doesn't care from where you run it!" |
| # Print only response header | |
| curl -sS -D - -o /dev/null 'https://www.google.de' | |
| # Post JSON | |
| curl -H "Content-Type: application/json" \ | |
| -H "Authorization: Bearer {token}" | |
| --request POST \ | |
| --data '{"username":"xyz","password":"xyz"}' \ | |
| 'https://www.example.org' |
| # This pretty-prints the JSON response: | |
| curl -s "https://api.example.com/data" | jq '.' | |
| # Useful flags | |
| # -c compact | |
| # To get all items: | |
| curl -s "https://api.example.com/data" | jq '.items[]' | |
| # To count all items: | |
| curl -s "https://api.example.com/data" | jq '.items[] | length' |
| #!/bin/bash | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[0;33m' | |
| RESET='\033[0m' | |
| packages=$(jq -r '.require | with_entries(select(.key | test("^typo3/") | not)) | keys[]' composer.json) | |
| for package in $packages; do |
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['Redirects'] => [
'Service' => [
'RedirectService' => [
'writerConfiguration' => [
\TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFileInfix' => 'core-redirect-service'
],
],| # This menu is considered to be 'clever' due to the fact that it's sliding accross the entire page tree: | |
| # | |
| # * Previous link: if there's no previous sibling page, we're linking to the parent page instead | |
| # * Next link: | |
| # * if there's no child page, we're linking to the next sibling page | |
| # * if that's not available, we're linking to the next sibling page of the parent page | |
| # * if that's not available, we're linking to the next sibling page of the grandparent page | |
| temp.browseMenuItem = HMENU | |
| temp.browseMenuItem.special = browse |