The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
1. Create a table which helps us for this task: | |
CREATE TABLE ClosureTable (ancestor_id INT NOT NULL, descendant_id INT NOT NULL, path_length INT NOT NULL, PRIMARY KEY (ancestor_id, descendant_id)); | |
2. Execute the following queries: | |
INSERT INTO ClosureTable (ancestor_id, descendant_id, path_length) SELECT 0,0,0; | |
INSERT INTO ClosureTable (ancestor_id, descendant_id, path_length) SELECT uid, uid, 0 FROM pages; |
<?php | |
namespace Helhum\ProcessingServices\Resource\Processing; | |
use TYPO3\CMS\Core\Utility; | |
class YoutubeProcessing { | |
/** | |
* @var \TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor | |
*/ | |
protected $processor; |
This script aims to clear all (yes. really all) caches being used by TYPO3. So the file caches in typo3temp and typo3conf/autoload, next the database caches in tables cf_* and eventual realurl caches. And finally any PHP caches like those from APC, xcache, or other PHP accelerators/compilers.
Simply install the script at some executable location on your webserver
<?php | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
if (\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getApplicationContext()->isDevelopment()) { | |
/** | |
* This override adds the possibility to use multitree subdomains without domain records (for SHARED_DB, vagrant, etc.) | |
* You can override the mappings or undo the override by creating a config file inside conf.d | |
* | |
* The override PageRepository checks for $subdomain . exec('hostname -f') |
<?php | |
namespace Websight\MyExt\Validation; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2015 Cedric Ziel <[email protected]> | |
* (c) 2014 Carsten Bleicker <[email protected]> | |
* All rights reserved |
This config shows an example of TYPO3 RealURL configuration, to map languages to domains.
Lets say the default language (L=0) is german and the foreign language is english (L=1). Normally RealURL would create links like that:
This example is about getting rid of the /en path segment.
<?php | |
/** | |
* Custom Doktypes | |
*/ | |
// Define a new doktype | |
$customShortlinkDoktype = 120; | |
$customPageIcon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/Shortlink.png'; | |
// Add the new doktype to the list of page types | |
$GLOBALS['PAGES_TYPES'][$customShortlinkDoktype] = array( |
<?php | |
class foo { | |
/** | |
* keep trac if we have created a custom error. | |
* @var boolean | |
*/ | |
protected $hasCustomError = false; |
User-agent: * | |
# Only allow URLs generated with RealURL | |
Disallow: /*?id=* | |
Disallow: /*&id=* | |
# L=0 is the default language | |
Disallow: /*?L=0* | |
Disallow: /*&L=0* |