'script' => 'browse_links.php?mode=wizard&act=file' ,
// becomes
<?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;} |
<?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"; |
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; | |
} |
/** | |
* 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) | |
{ |
$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; |
#!/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" |
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 |
Install the latest version of WinFsp. https://github.com/billziss-gh/winfsp/releases/tag/v1.2POST1 | |
Install the latest version of SSHFS-Win. Choose the x64 or x86 installer according to your computer’s architecture. https://github.com/billziss-gh/sshfs-win/releases/latest | |
Map Windows Drive using this URL: \\sshfs\username@machine_ip\..\.. |