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')
<?php | |
namespace Helhum\ProcessingServices\Resource\Processing; | |
use TYPO3\CMS\Core\Utility; | |
class YoutubeProcessing { | |
/** | |
* @var \TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor | |
*/ | |
protected $processor; |
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; |
public function indexAction() { | |
/** @var \TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory */ | |
$resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'); | |
$fileReference = $resourceFactory->getFileReferenceObject($this->settings['test']); | |
$fileArray = $fileReference->getProperties(); | |
$this->view->assign('image', $fileArray); | |
} |
# Page TSConfig: | |
tx_gridelements.setup { | |
# ID of Element | |
1 { | |
title = Two Columns | |
config { | |
colCount = 2 | |
rowCount = 1 | |
rows { | |
1 { |
<dateName> | |
<TCEforms> | |
<label>LLL:EXT:skinFlex/flex/locallang.xml:flexform.flex.dateName</label> | |
<config> | |
<type>input</type> | |
<eval>date</eval> | |
</config> | |
</TCEforms> | |
</dateName> |
This gist assumes:
www-data
(may be apache
on other systems)CULTURE SPEC.CULTURE ENGLISH NAME | |
-------------------------------------------------------------- | |
Invariant Language (Invariant Country) | |
af af-ZA Afrikaans | |
af-ZA af-ZA Afrikaans (South Africa) | |
ar ar-SA Arabic | |
ar-AE ar-AE Arabic (U.A.E.) | |
ar-BH ar-BH Arabic (Bahrain) | |
ar-DZ ar-DZ Arabic (Algeria) | |
ar-EG ar-EG Arabic (Egypt) |
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |