Skip to content

Instantly share code, notes, and snippets.

@alrnz
alrnz / typoscript.md
Last active May 8, 2019 08:44
TYPO3 Backend config to show hidden records #TYPO3

TYPO3 Backend config to show hidden records

config.tx_extbase.features.ignoreAllEnableFieldsInBe = 1

TS-Setup:

module.tx_yourextension.features.ignoreAllEnableFieldsInBe = 1

@alrnz
alrnz / pageTSconfig.ts
Created December 21, 2017 12:16
Allow only specific items on a page/folder (with id 17 here) TYPO3 pageTS
[page|uid = 17]
mod.web_list {
allowedNewTables = tx_matrix_domain_model_locations,tx_matrix_domain_model_locationstype,pages_language_overlay
}
[global]
@alrnz
alrnz / fritzbox_fritzfon_fehlerbeschreibung_kamerabilder.md
Created November 25, 2017 00:28
Fehlermeldung Fritz!Box bzw. FRITZ!Fon C5 oder andere
@alrnz
alrnz / typoscript.ts
Created September 22, 2017 11:40
TYPO3 - TypoScript - Wrap List-Elements (li) in span-Tags every time (in RTE). Often useful for color and format things.
lib.parseFunc.tags.li = TEXT
lib.parseFunc.tags.li {
current = 1
wrap = <li><span>|</span></li>
}
@alrnz
alrnz / seo_basics.ts
Last active July 17, 2019 09:22
Set static domain for SEO-Basics TYPO3 Extension
// add to the USER object (tx_seo_xmlsitemaps.10 = USER)
tx_seo_xmlsitemaps.10.useDomain = https://www.site.de/
@alrnz
alrnz / newsDetail.html
Created March 11, 2017 13:08
TYPO3 News - use Heise shariff for sharing in News Extension
{namespace n=GeorgRinger\News\ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<v:variable.set name="newsurl" value="{n:link(newsItem:'{newsItem}', settings:'{settings}', uriOnly:1, configuration:'{forceAbsoluteUrl: 1}')}" />
<!-- shariff ext -->
<div class="social-wrap">
<html xmlns:rx="http://typo3.org/ns/Reelworx/RxShariff/ViewHelper">
<rx:shariff data="{url: '{newsurl}'}" services="facebook,whatsapp,twitter,googleplus,mail" enableBackend="false" />
</html>
@alrnz
alrnz / replace.ts
Last active January 24, 2017 13:10
Replace a | in a string with a username. This is just an example to show how complex replacements in TypoScript works. Please don't insert a username on every page like this. It kills caching.
stdWrap.replacement {
10 {
search = |
replace.stdWrap.cObject = COA
replace.stdWrap.cObject {
10 = TEXT
10.data = TSFE:fe_user|user|first_name
10.noTrimWrap = || |
20 = TEXT
20.data = TSFE:fe_user|user|last_name
@alrnz
alrnz / auto_core_update_email.php
Last active January 12, 2017 09:53 — forked from annalinneajohansson/auto_core_update_email.php
Change the recipient email for auto_core_update_email
<?php
// change email of auto update notification
function filter_change_auto_update_email( $email ) {
$email['to'] = 'username@example.com';
return $email;
}
add_filter( 'auto_core_update_email', 'filter_change_auto_update_email', 1 );
@alrnz
alrnz / tt_content.ts
Created January 9, 2017 12:02
TYPO3 TypoScript HTML in Bildunterschriften erlauben TYPO3 TypoScript allow HTML in image caption
tt_content.image.20.caption.1.1.htmlSpecialChars = 0
@alrnz
alrnz / parse.php
Created December 7, 2016 11:03
TYPO3 RTE (and link) parser in PHP
<?php
// parse all rte tags
$output = $this->pi_RTEcssText($text);
// parse only br and a tags
$output = strip_tags($this->pi_RTEcssText($text, '<br><a>');
// parse only links (link-Tag in the RTE)
$this->htmlParser = t3lib_div::makeInstance("t3lib_parsehtml_proc");