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
| 1. Install « from scratch » avec ddev. typo3/cms-base-distribution | |
| 2. Petit tour du propriétaire du backend (mode page : creation de la root page, ajout de content elements classiques (fournis dans l’install de typo par defaut), mode liste, formulaires, gabarits, install tools) | |
| 3. Puis paramétrage multilingues (ajout des langues dans le mode liste, paramétrage multisites dans le mode sites, ajout du français en back : mode maintenance/languages pack, puis réglage du langage dans la config utilisateur en haut à droite) | |
| 4. Installation de Bootstrap Package (theme et config typoscripts par defaut) via composer https://packagist.org/packages/bk2k/bootstrap-package | |
| 5. Explications sur cette extension https://docs.typo3.org/p/bk2k/bootstrap-package/master/en-us/ | |
| 6. Installation de l’extension DCE via composer https://packagist.org/packages/t3/dce | |
| 7. Création de contents element avec DCE, afin de comprendre les concepts de TCA (champs formulaires backend) et de Fluid template engine | |
| 8. Installation de Extension |
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
| #!/bin/bash | |
| # 2020 - @fchaussin [FCN] | |
| if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
| echo -e "Please exec this bash as superuser, with -E to keep your user environnement variables: | |
| \e[32msudo -E ./xDebugIp.sh\e[39m" | |
| exit | |
| fi | |
| php_version="7.2" |
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
| $query = $this->createQuery(); | |
| $query->equals('mm.uid_foreign', $uid); | |
| $return = $query->count(); | |
| $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()); | |
| return $return; |
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
| /** | |
| * Find a record by uid even if it is hidden or deleted | |
| * | |
| * @param int $uid | |
| * @param int|array $pid | |
| * @return object | |
| */ | |
| public function findByUidInAllRecordsByUid($uid, $pid=false) | |
| { |
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
| class MyController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController | |
| { | |
| ... | |
| private function _getFlexFormOptions() | |
| { | |
| $this->contentObj = $this->configurationManager->getContentObject(); | |
| $piFlexForm = $this->contentObj->data['pi_flexform']; | |
| $options = \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array($piFlexForm); | |
| return $options; | |
| } |
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 | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| $database = 'dbname'; | |
| $user = 'user'; | |
| $pass = '***'; | |
| $host = 'localhost'; | |
| $now = date('Ymdhis'); | |
| $dir = dirname(__FILE__) . "/dump{$now}.sql"; |
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 | |
| $zipfiles = glob('*.{zip}', GLOB_BRACE); | |
| $options = ""; | |
| foreach($zipfiles as $file){ | |
| $options .= "<option value='{$file}'>{$file}</option>"; | |
| } | |
| ?> | |
| <style> | |
| body{font-family:sans-serif;font-size:20px;width:100%;max-width:900px;margin:0 auto;} | |
| .text{background:rgba(0,0,0,.05);padding:2em; text-align: center;} |
NewerOlder