DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Signal/Slot UsageΒΆ

Use the following code in 'ext_localconf.php' to add a slot to the signal.

/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);

$signalSlotDispatcher->connect(
        \MageDeveloper\Fluidrte\Controller\ParseHtmlController::class, 'parsePlainContent',
        \Vendor\Extensionname\Slots\FluidrteSlot::class, 'parsePlainContent'
);

This is the method for adding new variables to fluid/stdWrap

/**
 * Signal/Slot the Fluidrte Parse Method
 *
 * @param string $source Template Source Code
 * @param array $templateVariables Template Variables
 * @param \TYPO3\CMS\Fluid\View\AbstractTemplateView $view Template View Model
 * @return void
 */
public function parsePlainContent(&$source, array &$templateVariables, \TYPO3\CMS\Fluid\View\AbstractTemplateView &$view)
{
        // '{custom}' Fluid Marker with plain content
        $templateVariables["custom"] = "My Own Template Content, whatever it is! :)"
}