Skip to content

Instantly share code, notes, and snippets.

View einpraegsam's full-sized avatar
💭
Ready to find solutions

Alexander Kellner einpraegsam

💭
Ready to find solutions
View GitHub Profile
@bmack
bmack / GenerateUrlWithSites.php
Created June 21, 2019 06:20
TYPO3: Create an absolute URL for a page with Site Handling
/**
* Generates an absolute URL for a page (based on Site Handling)
*
* @param int $pageId
* @param array|null $arguments
* @return UriInterface
* @throws \TYPO3\CMS\Core\Exception\SiteNotFoundException
* @throws \TYPO3\CMS\Core\Routing\InvalidRouteArgumentsException
*/
private function getUrlForPage(int $pageId, array $arguments = null): UriInterface
@georgringer
georgringer / Configuration.ts
Created January 23, 2017 18:48
Persist a TYPO3 powermail form including a sys_file_reference
plugin.tx_powermail.settings.setup {
finishers {
89 {
class = GeorgRinger\Example\Hooks\Frontend\SaveFinisher
config {
# location in fileadmin
path = formuploads/
# pid to save
@michelalbers
michelalbers / lib.menu.language.ts
Created January 21, 2015 19:14
Language Switcher in TYPO3 with tx_news support
lib.menuLanguage = COA
lib.menuLanguage {
10 = HMENU
10 {
special = language
special.value = 1,2
stdWrap.wrap = <ul class="language-select">|</ul>
1 = TMENU
1 {
# Normal link to language that exists: