Skip to content

Instantly share code, notes, and snippets.

View t3easy's full-sized avatar
💭
Busy but happy!

Jan Kiesewetter t3easy

💭
Busy but happy!
View GitHub Profile
@spoonerWeb
spoonerWeb / AddCategoriesToFile.php
Created August 7, 2020 10:18
Add category records to TYPO3 file record (e.g. for using it when fetching files via DataProcessing)
<?php
namespace Vendor\Package\EventListener;
/*
* This file is part of a TYPO3 extension.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@julrich
julrich / lib.navSidebar.ts
Last active August 4, 2020 12:51
Fully cached TYPO3 HMENU navigation example with expAll and 'active', 'current' states
#
# Main navigation in Sidebar
#
# General idea: Don't render & cache 'active' and 'current' states in 'expAll' menu, so it becomes cacheable
# over all pages. To regain 'active' and 'current' states, the result of the cached menu is parsed by
# 'stdWrap.replacement', utilizing specific information about the resulting menu item markup to insert them.
# Use COA to decouple the stdWrap ('lib.navSidebar.stdWrap.replacement') needed for RegExp replacement from
# the cached menu ('lib.navSidebar.10'). This way the complete menu can be generically cached without current
@helhum
helhum / deploy-to-target-info.md
Last active August 23, 2018 13:30
TYPO3 setup steps

Requirements for deployment

  • ssh (generate key and put on server)
  • rsync must be available on both machines (deployment host and target host)
  • PHP cli binary must be available on both machines (deployment host and target host)
  • composer must be available on deployment host

Needed info for each target system:

  • deploy directory
@xperseguers
xperseguers / controller.php
Last active April 4, 2023 07:56
Upload files in TYPO3 from Frontend
/**
* Upload files.
*
* @return void
*/
public function uploadAction() {
$overwriteExistingFiles = TRUE;
$data = array();
$namespace = key($_FILES);
anonymous
anonymous / SessionRepository.php
Created February 18, 2013 16:03
<?php
/***************************************************************
* Copyright notice
*
* (c) 2013 Jan Kiesewetter <janYYYY@t3easy.de>, t3easy
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is