Skip to content

Instantly share code, notes, and snippets.

@alrnz
alrnz / category.ts
Last active May 8, 2019 08:44
List sys_category - categories of #TYPO3 #TypoScript
mycategories = CONTENT
mycategories {
table = sys_category
select {
pidInList = 4
# where = parent = {$global.parentCategory}
}
renderObj = TEXT
renderObj{
field = title
@alrnz
alrnz / typoscript.ts
Last active May 8, 2019 08:44
TYPOSCRIPT select field of years - shows the years up to the current #TYPO3 #TypoScript
year_dropdown = COA
year_dropdown {
10 = TEXT
10 {
# aktuelles Jahr
data = date : Y
wrap = <option>|</option>
}
20 < .10
20 {
@alrnz
alrnz / typoscript.ts
Last active May 8, 2019 08:43
Create new pagetype in TYPO3 with typenum 666 #TYPO3 #TypoScript
##### TYPOSCRIPT insert a plugin via typoscript / get result of conroller
tx_sz_catseach_ajax = PAGE
tx_sz_catseach_ajax {
typeNum = 666
config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders = Content-type: text/plain
no_cache = 1
@alrnz
alrnz / ExampleController.php
Last active March 22, 2018 11:37
Integrate Flexform for Plugin TYPO3 (6.2, too)
<?php
namespace Vendor\Exampleext\Controller;
/* ... */
/**
* ExampleController
*/
class ExampleController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {