Skip to content

Instantly share code, notes, and snippets.

@MrMooky
MrMooky / ts_plugin_integration.txt
Last active January 19, 2016 07:14
TypoScript Plugin integration
plugin.tx_EXTENSION.persistence.storagePid = 000
temp.somename = USER
temp.somename {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
pluginName =
extensionName =
vendorName =
switchableControllerActions.CONTROLLERNAME.1 =
@MrMooky
MrMooky / TCA_access_foreign_table
Created January 19, 2016 08:51
TCA access foreign table
'kategorie' => array(
'exclude' => 1,
'label' => 'LLL:EXT:produkte/Resources/Private/Language/locallang_db.xlf:tx_produkte_domain_model_produkt.kategorie',
'config' => array(
'type' => 'select',
'items' => array(
array('-', 0),
),
'foreign_table' => 'tx_produkte_domain_model_kategorie',
'minitems' => 0,
@MrMooky
MrMooky / gist:9f7bf7088f21296ff94b
Created January 19, 2016 12:55
RealUrl best practice
https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/Realurl/Index.html
@MrMooky
MrMooky / TS Linkhandler
Created January 21, 2016 08:59
TS Linkhandler
plugin.tx_linkhandler.tx_produkte_domain_model_produktgruppelevel1 {
parameter = 93
additionalParams = &tx_produkte_produkte[kategorie]={field:kategorie}&tx_produkte_produkte[hersteller]={field:hersteller}&tx_produkte_produkte[produktgruppeLevel1]={field:uid}
additionalParams.insertData = 1
useCacheHash = 1
}
temp.heroSlide = CONTENT
temp.heroSlide {
table = tt_content
select {
pidInList.data = 1
orderBy = sorting
where = colPos = 1
begin = 0
#max = 2
lanuageField = sys_language_uid
##### GET USER EMAIL BY ID
lib.userByEmail = COA
lib.userByEmail {
10 = LOAD_REGISTER
10.userID.current = 1
20 = CONTENT
20.table = fe_users
20.select {
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="container3cols" label="Inhaltscontainer mit 3 Spalten" description="3-spaltiger Inhaltscontainer, dessen Inhalte in drei gleich breiten Spalten dargestellt wird" options="{group: 'Eigene Inhaltselemente', icon: '{f:uri.resource(path: \'Icons/Content/t3-slider-single.png\')}'}">
<flux:grid>
<flux:grid.row>
<flux:grid.column style="width: 33%;" name="content.left" label="Inhalt links"></flux:grid.column>
<flux:grid.column style="width: 33%;" name="content.middle" label="Inhalt mitte"></flux:grid.column>
@MrMooky
MrMooky / FluidContent - Current year
Last active September 6, 2016 10:02 — forked from sauttefk/gist:65071cd1d60f0e42d646
Output current year in Copyright line
&copy; <f:format.date format="Y">{v:system.timestamp()}</f:format.date>
@MrMooky
MrMooky / vhs Fluid resources
Created November 16, 2016 11:04
Get image from resources
<f:if condition="{page.media} == 0">
<f:then>
<v:resource.record.fal table="pages" field="media" uid="{page.pid}" as="resources">
<f:for each="{resources}" as="resource"><v:resource.image identifier="{resource.id}" width="2500" height="600c" alt="" /></f:for>
</v:resource.record.fal>
</f:then>
<f:else>
<v:resource.record.fal table="pages" field="media" uid="{page.uid}" as="resources">
<f:for each="{resources}" as="resource"><v:resource.image identifier="{resource.id}" width="2500" height="600c" alt="" /></f:for>
</v:resource.record.fal>
lib.login < plugin.tx_felogin_pi1
lib.login {
storagePid = 100
redirectMode = loginError
redirectPageLoginError = 119
templateFile = fileadmin/system/felogin_s.html
}