This file contains hidden or 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
# https://stackoverflow.com/questions/55007086/how-to-return-a-proper-404-error-from-extbase-with-a-error-handling-configuratio | |
$response = GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction( | |
$GLOBALS['TYPO3_REQUEST'], | |
'Your error message', | |
['code' => PageAccessFailureReasons::PAGE_NOT_FOUND] | |
); | |
throw new ImmediateResponseException($response); |
This file contains hidden or 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
/** | |
* @return array | |
*/ | |
public function getSortingMatrix(): array | |
{ | |
$matrix = []; | |
$rootLine = GeneralUtility::makeInstance(RootlineUtility::class, $this->getUid())->get(); | |
foreach ($rootLine as $level => $item) { | |
$matrix[$level] = $item['sorting']; |
This file contains hidden or 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
ssh -N -L 8983:127.0.0.1:8983 [email protected] |
This file contains hidden or 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
$queryParser = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class); | |
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()); | |
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters()); |
This file contains hidden or 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
#Protected hosts by password | |
<If "%{HTTP_HOST} in { 'hotst.name.com' }"> | |
AuthType Basic | |
AuthName "Password Protected" | |
AuthUserFile /var/www/html/.htpasswd | |
Require valid-user | |
</If> | |
#Protected hosts by password and env variable | |
<If "!(%{ENV:TYPO3_CONTEXT} in {'Development/DDev', 'Testing'})"> |
This file contains hidden or 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
/** | |
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> | |
*/ | |
public function getMedia(): \TYPO3\CMS\Extbase\Persistence\ObjectStorage | |
{ | |
//Never ending typo3 BUG with typo3 FAL localizations | |
if ($GLOBALS['TSFE']->sys_language_uid > 0) { | |
$query = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_file_reference'); | |
$fileReferences = $query | |
->select('uid') |
This file contains hidden or 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
/** | |
* Initialize action for submit action | |
*/ | |
public function initializeSubmitAction() | |
{ | |
if ($this->arguments->hasArgument('order') and $this->request->getArgument('order')['shipping']) { | |
$validatorResolver = $this->objectManager->get(ValidatorResolver::class); | |
$dynamicValidator = $validatorResolver->createValidator(GenericObjectValidator::class); | |
foreach ($this->request->getArgument('order')['shipping'] as $shippingMethod) { | |
switch ($shippingMethod) { |
This file contains hidden or 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
<settings.advertising> | |
<TCEforms> | |
<label>LLL:EXT:dw_page_types/Resources/Private/Language/locallang_db.xlf:flexform.plugin.event.advertising</label> | |
<config> | |
<type>inline</type> | |
<maxitems>1</maxitems> | |
<minitems>0</minitems> | |
<foreign_table>sys_file_reference</foreign_table> | |
<foreign_field>uid_foreign</foreign_field> | |
<foreign_table_field>tablenames</foreign_table_field> |
This file contains hidden or 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 BinaryBay\BbBoilerplate\Utility; | |
use TYPO3\CMS\Core\DataHandling\DataHandler; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Core\Messaging\FlashMessageService; | |
use TYPO3\CMS\Core\Messaging\FlashMessage; | |
use TYPO3\CMS\Backend\Utility\BackendUtility; | |
use TYPO3\CMS\Extbase\Service\FlexFormService; | |
use TYPO3\CMS\Extbase\Object\ObjectManager; |
This file contains hidden or 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
<flux:field.inline.fal name="settings.users" | |
maxItems="8" | |
collapseAll="true" | |
foreignTypes="{ | |
2: { | |
showitem: ' | |
--palette--;;your_palette_name, | |
--palette--;;filePalette | |
' | |
} |
NewerOlder