Installation
Composer installations
composer require friendsoftypo3/content-blocks
Copied!
Classic mode
Activate the Content Blocks extension in the Extension Manager.
Security
In classic mode it is important to deny access to the Content Blocks folder by the webserver. For this a small adjustment to the standard TYPO3 .htaccess file in the section "Access block for folders" is needed:
.htaccess.diff
-RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]
+RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|ContentBlocks|Resources/Private|Tests?|Documentation|docs?)/ - [F]
Copied!
nginx configuration
-location ~ (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ {
+location ~ (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|ContentBlocks|Resources/Private|Tests?|Documentation|docs?)/ {
deny all;
}
Copied!