Browse Source

initial commit

ksieren 2 years ago
commit
ce3ff9bfd3
100 changed files with 14578 additions and 0 deletions
  1. 53 0
      Classes/Controller/DKZController.php
  2. 248 0
      Classes/DKZer.php
  3. 42 0
      Classes/Form/Element/PagesDkzSelector.php
  4. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmAdditionalinfoboxPreviewRenderer.php
  5. 47 0
      Classes/Hooks/PageLayoutView/MrmBeCmAnimationPreviewRenderer.php
  6. 58 0
      Classes/Hooks/PageLayoutView/MrmBeCmButtonPreviewRenderer.php
  7. 65 0
      Classes/Hooks/PageLayoutView/MrmBeCmChatbotDirectPreviewRenderer.php
  8. 68 0
      Classes/Hooks/PageLayoutView/MrmBeCmChatbotPreviewRenderer.php
  9. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistInputPreviewRenderer.php
  10. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistRadioRangePreviewRenderer.php
  11. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistScalePreviewRenderer.php
  12. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoMultiPreviewRenderer.php
  13. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoPreviewRenderer.php
  14. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmChecklistYesMaybeNoPreviewRenderer.php
  15. 82 0
      Classes/Hooks/PageLayoutView/MrmBeCmContentimagePreviewRenderer.php
  16. 72 0
      Classes/Hooks/PageLayoutView/MrmBeCmExplorerboxPreviewRenderer.php
  17. 64 0
      Classes/Hooks/PageLayoutView/MrmBeCmExtraInfosboxPreviewRenderer.php
  18. 47 0
      Classes/Hooks/PageLayoutView/MrmBeCmFahrplanPreviewRenderer.php
  19. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmFoldoutH3PreviewRenderer.php
  20. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmFoldoutPreviewRenderer.php
  21. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmH2PreviewRenderer.php
  22. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmH3PreviewRenderer.php
  23. 75 0
      Classes/Hooks/PageLayoutView/MrmBeCmHeroimagePreviewRenderer.php
  24. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmHighlightboxPreviewRenderer.php
  25. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmHtmlPreviewRenderer.php
  26. 89 0
      Classes/Hooks/PageLayoutView/MrmBeCmImageplusPreviewRenderer.php
  27. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmInfoboxPreviewRenderer.php
  28. 57 0
      Classes/Hooks/PageLayoutView/MrmBeCmInjectionPreviewRenderer.php
  29. 64 0
      Classes/Hooks/PageLayoutView/MrmBeCmInterviewantwortPreviewRenderer.php
  30. 60 0
      Classes/Hooks/PageLayoutView/MrmBeCmInterviewfragePreviewRenderer.php
  31. 57 0
      Classes/Hooks/PageLayoutView/MrmBeCmIntrotextPreviewRenderer.php
  32. 65 0
      Classes/Hooks/PageLayoutView/MrmBeCmLinkagePreviewRenderer.php
  33. 65 0
      Classes/Hooks/PageLayoutView/MrmBeCmMenuPreviewRenderer.php
  34. 63 0
      Classes/Hooks/PageLayoutView/MrmBeCmMovingimagesvideoPreviewRenderer.php
  35. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmNewsletteraboPreviewRenderer.php
  36. 57 0
      Classes/Hooks/PageLayoutView/MrmBeCmParagraphPreviewRenderer.php
  37. 74 0
      Classes/Hooks/PageLayoutView/MrmBeCmPicturechoicePreviewRenderer.php
  38. 61 0
      Classes/Hooks/PageLayoutView/MrmBeCmPodcastPreviewRenderer.php
  39. 75 0
      Classes/Hooks/PageLayoutView/MrmBeCmPostimagePreviewRenderer.php
  40. 75 0
      Classes/Hooks/PageLayoutView/MrmBeCmPublicationPreviewRenderer.php
  41. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmQuizPreviewRenderer.php
  42. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmQuizdirectPreviewRenderer.php
  43. 82 0
      Classes/Hooks/PageLayoutView/MrmBeCmRawimagePreviewRenderer.php
  44. 55 0
      Classes/Hooks/PageLayoutView/MrmBeCmRedirectsPreviewRenderer.php
  45. 73 0
      Classes/Hooks/PageLayoutView/MrmBeCmStatementboxPreviewRenderer.php
  46. 71 0
      Classes/Hooks/PageLayoutView/MrmBeCmThemaDerWochePreviewRenderer.php
  47. 74 0
      Classes/Hooks/PageLayoutView/MrmBeCmTopthemenPreviewRenderer.php
  48. 48 0
      Classes/Hooks/PageLayoutView/MrmBeCmVotingPreviewRenderer.php
  49. 52 0
      Classes/Hooks/PageLayoutView/MrmbeCmMaintenancePreviewRenderer.php
  50. 2380 0
      Classes/Hooks/TCE/TCEMainHook.php
  51. 78 0
      Classes/Mongoer.php
  52. 63 0
      Classes/Task/PageStatusValidator.php
  53. 56 0
      Classes/Task/RedirectsFromMysqlToMongo.php
  54. 75 0
      Classes/UserFunc/Pages.php
  55. 16 0
      Configuration/Backend/AjaxRoutes.php
  56. 238 0
      Configuration/FlexForms/additionalinfobox.xml
  57. 108 0
      Configuration/FlexForms/animation.xml
  58. 54 0
      Configuration/FlexForms/button.xml
  59. 35 0
      Configuration/FlexForms/chatbot-direct.xml
  60. 87 0
      Configuration/FlexForms/chatbot.xml
  61. 176 0
      Configuration/FlexForms/checklist-input.xml
  62. 409 0
      Configuration/FlexForms/checklist-radiorange.xml
  63. 274 0
      Configuration/FlexForms/checklist-scale.xml
  64. 121 0
      Configuration/FlexForms/checklist-todo-multi.xml
  65. 221 0
      Configuration/FlexForms/checklist-todo.xml
  66. 184 0
      Configuration/FlexForms/checklist-yesmaybeno.xml
  67. 90 0
      Configuration/FlexForms/contentimage.xml
  68. 260 0
      Configuration/FlexForms/dynamictileoverview.xml
  69. 795 0
      Configuration/FlexForms/explorerbox.xml
  70. 205 0
      Configuration/FlexForms/extra-infosbox.xml
  71. 626 0
      Configuration/FlexForms/fahrplan.xml
  72. 226 0
      Configuration/FlexForms/foldout-h3.xml
  73. 226 0
      Configuration/FlexForms/foldout.xml
  74. 25 0
      Configuration/FlexForms/headline1.xml
  75. 25 0
      Configuration/FlexForms/headline2.xml
  76. 25 0
      Configuration/FlexForms/headline3.xml
  77. 90 0
      Configuration/FlexForms/heroimage.xml
  78. 46 0
      Configuration/FlexForms/highlightbox.xml
  79. 413 0
      Configuration/FlexForms/homeheaderinfo.xml
  80. 25 0
      Configuration/FlexForms/html.xml
  81. 131 0
      Configuration/FlexForms/imageplus.xml
  82. 255 0
      Configuration/FlexForms/infobox.xml
  83. 25 0
      Configuration/FlexForms/injection.xml
  84. 46 0
      Configuration/FlexForms/interviewantwort.xml
  85. 35 0
      Configuration/FlexForms/interviewfrage.xml
  86. 26 0
      Configuration/FlexForms/introtext.xml
  87. 235 0
      Configuration/FlexForms/linkage.xml
  88. 50 0
      Configuration/FlexForms/maintenance.xml
  89. 83 0
      Configuration/FlexForms/menu.xml
  90. 43 0
      Configuration/FlexForms/movingimagesvideo.xml
  91. 38 0
      Configuration/FlexForms/newsletterabo.xml
  92. 28 0
      Configuration/FlexForms/paragraph.xml
  93. 1467 0
      Configuration/FlexForms/picturechoice.xml
  94. 99 0
      Configuration/FlexForms/podcast.xml
  95. 90 0
      Configuration/FlexForms/postimage.xml
  96. 188 0
      Configuration/FlexForms/publication.xml
  97. 367 0
      Configuration/FlexForms/quiz.xml
  98. 413 0
      Configuration/FlexForms/quizdirect.xml
  99. 92 0
      Configuration/FlexForms/rawimage.xml
  100. 56 0
      Configuration/FlexForms/redirects.xml

+ 53 - 0
Classes/Controller/DKZController.php

@@ -0,0 +1,53 @@
+<?php
+namespace Meramo\mrm_be\Controller;
+
+use \Psr\Http\Message\ServerRequestInterface;
+use TYPO3\CMS\Core\Http\JsonResponse;
+
+class DKZController
+{
+  /** @var ResponseFactoryInterface */
+  private $responseFactory;
+
+  public function __construct(){
+    $this->dkzer = new \Meramo\mrm_be\DKZer();
+  }
+
+  public function getBranchAction(ServerRequestInterface $request): JsonResponse
+  {
+    $branch = $request->getQueryParams()['branch'] ?? null;
+    if(!$branch) return new JsonResponse(['data' => json_encode(['success' => false])]);
+
+    $branchFromDkz = $this->dkzer->getBranch($branch);
+
+    $data = ['branch' => $branch, 'list' => $branchFromDkz];
+    return new JsonResponse(['data' => json_encode(['success' => true, 'data' => $data])]);
+  }
+
+  public function getListsAction(ServerRequestInterface $request): JsonResponse
+  {
+    $codenrs = $request->getQueryParams()['codenrs'] ?? null;
+    if(!$codenrs) return new JsonResponse(['data' => json_encode(['success' => false])]);
+
+    $dataFromDkz = $this->dkzer->getLists($codenrs);
+
+    return new JsonResponse(['data' => json_encode(['success' => true, 'data' => $dataFromDkz])]);
+  }
+
+  public function getSearchedAction(ServerRequestInterface $request): JsonResponse
+  {
+    $query = $request->getQueryParams()['query'] ?? null;
+    if(!$query) return new JsonResponse(['data' => json_encode(['success' => false])]);
+
+    $dataFromDkz = $this->dkzer->getSearched($query);
+
+    return new JsonResponse(['data' => json_encode(['success' => true, 'data' => $dataFromDkz])]);
+  }
+
+  private function log($msg, $isString = true){
+    if(!$isString){
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/var/www/html/typo3temp/debug.log', "--- DKZer ---".PHP_EOL.$msg.PHP_EOL, FILE_APPEND);
+  }
+}

+ 248 - 0
Classes/DKZer.php

@@ -0,0 +1,248 @@
+<?php
+namespace Meramo\mrm_be;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Database\ConnectionPool;
+use \TYPO3\CMS\Core\Database\Connection;
+
+
+class DKZer
+{
+  private $connection;
+  private $auth_token = null;
+  private $fetched_data = null;
+
+  function __construct(){
+    $this->auth();
+  }
+
+  private function auth(){
+    $url = "/auth";
+    $data = array(
+      'usr' => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['usr'],
+      'pwd' => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['pwd']
+    );
+    $result = $this->sendRequest($url, $data);
+    if($result["tok"]) $this->auth_token = $result["tok"];
+  }
+
+  private function sendRequest($url, $data){
+    $url = $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['url'].$url;
+    $data = json_encode($data);
+
+    $ch = curl_init($url);
+    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
+    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
+    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
+        'Content-Type: application/json; charset=utf-8',
+        'Content-Length: ' . strlen($data))
+    );
+    $result = curl_exec($ch);
+
+    if($result === FALSE) return null;
+    return json_decode($result, TRUE);
+  }
+
+  private function log($msg, $isString = true){
+    if(!$isString){
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/var/www/html/typo3temp/debug.log', "--- DKZer ---".PHP_EOL.$msg.PHP_EOL, FILE_APPEND);
+  }
+
+  public function getSearchWords($codenrs) {
+    $resultBerufe = $this->sendRequest(
+        "/get/beruf",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "codenr" => array('$in' => preg_split('/( *),( *)/', $codenrs)),
+          ),
+          "select" => "suchworte.name_technisch",
+        )
+      )
+    ;
+
+    $resultSystematik = $this->sendRequest(
+        "/get/systematik",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "codenr" => array('$in' => preg_split('/( *),( *)/', $codenrs)),
+          ),
+          "select" => "suchworte.name_technisch",
+        )
+      )
+    ;
+
+    if($resultBerufe === FALSE && $resultSystematik === FALSE) return null;
+    $sws = array();
+    if($resultSystematik)
+      foreach($resultSystematik as $itm){
+        foreach($itm["suchworte"] as $swo){
+          $sws[] = $swo["name_technisch"];
+        }
+      }
+
+    if($resultBerufe)
+      foreach($resultBerufe as $itm){
+        foreach($itm["suchworte"] as $swo){
+          $sws[] = $swo["name_technisch"];
+        }
+      }
+    $sws = array_unique($sws);
+    return $sws;
+  }
+
+  public function getSearched($query){
+    $result = $this->sendRequest(
+        "/get/systematik",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "bezeichnung" => "***".$query
+          ),
+          "select" => "codenr suchworte bezeichnung"
+        )
+      )
+    ;
+    $result = array_merge($result, $this->sendRequest(
+        "/get/beruf",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "bezeichnung" => "***".$query
+          ),
+          "select" => "codenr suchworte bezeichnung"
+        )
+      )
+    );
+
+    $ret = array();
+    foreach($result as $itm){
+      $ret[$itm['codenr']] = array('codenr' => $itm['codenr'], 'bezeichnung' => htmlspecialchars($itm['bezeichnung']), 'swcount' => sizeof($itm['suchworte']));
+    }
+
+    $keys = array_keys($ret);
+    natsort($keys);
+    $keys = array_values($keys);
+    $ret2 = array();
+    foreach($keys as $idx => $key){
+      $ret2[] = $ret[$key];
+    }
+
+    return array("list" => array_values($ret2));
+  }
+
+  public function getLists($codenrs) {
+    $resultBerufe = $this->sendRequest(
+        "/get/beruf",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "codenr" => array('$in' => preg_split('/( *),( *)/', $codenrs)),
+          ),
+          "select" => "bezeichnung codenr suchworte.name",
+        )
+      )
+    ;
+
+    $resultSystematik = $this->sendRequest(
+        "/get/systematik",
+        array(
+          "tok" => $this->auth_token,
+          "query" => array(
+            "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+            "codenr" => array('$in' => preg_split('/( *),( *)/', $codenrs)),
+          ),
+          "select" => "bezeichnung codenr suchworte.name",
+        )
+      )
+    ;
+
+    if($resultBerufe === FALSE && $resultSystematik === FALSE) return null;
+    $sws = array();
+    $berufe = array();
+    if($resultSystematik)
+      foreach($resultSystematik as $itm){
+        $berufe[] = array( "codenr" => $itm["codenr"], "bezeichnung" => $itm["bezeichnung"] );
+        foreach($itm["suchworte"] as $swo){
+          $sws[] = $swo["name"];
+        }
+      }
+
+    if($resultBerufe)
+      foreach($resultBerufe as $itm){
+        $berufe[] = array( "codenr" => $itm["codenr"], "bezeichnung" => $itm["bezeichnung"] );
+        foreach($itm["suchworte"] as $swo){
+          $sws[] = $swo["name"];
+        }
+      }
+    $sws = array_unique($sws);
+    return array("sws" => array_values($sws), "berufe" => array_values($berufe));
+  }
+
+  public function getBranch($path){
+    $result = FALSE;
+    if($path === "root")
+        $result = $this->sendRequest(
+            "/get/systematik",
+            array(
+              "tok" => $this->auth_token,
+              "query" => array(
+                "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+                '$expr' => array('$eq' => array(array('$strLenCP' => '$codenr'), 3))
+              ),
+              "select" => "codenr obercodenr suchworte bezeichnung"
+            )
+          )
+        ;
+    else {
+      $result = $this->sendRequest(
+          "/get/systematik",
+          array(
+            "tok" => $this->auth_token,
+            "query" => array(
+              "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+              "codenr" => "***^".$path."\\d$"
+            ),
+            "select" => "codenr obercodenr suchworte bezeichnung"
+          )
+        )
+      ;
+      $result = array_merge($result, $this->sendRequest(
+          "/get/beruf",
+          array(
+            "tok" => $this->auth_token,
+            "query" => array(
+              "layer" => $GLOBALS['TYPO3_CONF_VARS']['MRM']['dkz']['layer'],
+              "obercodenr" => $path
+            ),
+            "select" => "codenr obercodenr suchworte bezeichnung"
+          )
+        )
+      );
+    }
+
+    $ret = array();
+    foreach($result as $itm){
+      $ret[$itm['codenr']] = array('codenr' => $itm['codenr'], 'obercodenr' => $itm['obercodenr'] ?  $itm['obercodenr'] : $path, 'bezeichnung' => htmlspecialchars($itm['bezeichnung']), 'swcount' => sizeof($itm['suchworte']));
+    }
+
+    $keys = array_keys($ret);
+    natsort($keys);
+    $keys = array_values($keys);
+    $ret2 = array();
+    foreach($keys as $idx => $key){
+      $ret2[] = $ret[$key];
+    }
+
+    return $ret2;
+  }
+}

+ 42 - 0
Classes/Form/Element/PagesDkzSelector.php

@@ -0,0 +1,42 @@
+<?php
+declare(strict_types = 1);
+namespace Meramo\mrm_be\Form\Element;
+
+use \TYPO3\CMS\Backend\Form\Element\AbstractFormElement;
+
+class PagesDkzSelector extends AbstractFormElement
+{
+    public function render()
+    {
+        // Custom TCA properties and other data can be found in $this->data, for example the above
+        // parameters are available in $this->data['parameterArray']['fieldConf']['config']['parameters']
+        $result = $this->initializeResultArray();
+        $html = array(
+          '<div class="formengine-field-item t3js-formengine-field-item">',
+            '<div class="form-control-wrap" style="max-width: 100%;">',
+              '<div class="form-wizards-wrap">',
+                '<div class="form-wizards-element">',
+                  '<div class="form-control-clearable">',
+                    '<script type="application/javascript">window.dkzFormElementId="'.$this->data['parameterArray']['itemFormElID'].'";</script>',
+                    '<input class="form-control mrm_be_dkz_form_hidden" type="text" name="'.$this->data['parameterArray']['itemFormElName'].'" id="'.$this->data['parameterArray']['itemFormElID'].'" value="'.$this->data['parameterArray']['itemFormElValue'].'" />',
+                  '</div>',
+                '</div>',
+              '</div>',
+            '</div>',
+          '</div>',
+          '<script type="application/javascript" src="/typo3conf/ext/mrm_be/Resources/Public/Javascript/dkz_page_tree.js"></script>',
+          '<link rel="stylesheet" type="text/css" href="/typo3conf/ext/mrm_be/Resources/Public/Css/dkz_page_tree.css" media="all" >',
+        );
+        $result['html'] = implode('', $html);
+//        $this->log($result, false);
+//        $this->log($this->data['parameterArray'], false);
+        return $result;
+    }
+
+    private function log($msg, $isString = true){
+      if(!$isString){
+        $msg = json_encode($msg, JSON_PRETTY_PRINT);
+      }
+      file_put_contents('/var/www/html/typo3temp/debug.log', "--- Form/Element/PagesDkzSelector ---".PHP_EOL.$msg.PHP_EOL, FILE_APPEND);
+    }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmAdditionalinfoboxPreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmAdditionalinfoboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_additionalinfobox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['headline'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 47 - 0
Classes/Hooks/PageLayoutView/MrmBeCmAnimationPreviewRenderer.php

@@ -0,0 +1,47 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmAnimationPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {}
+}

+ 58 - 0
Classes/Hooks/PageLayoutView/MrmBeCmButtonPreviewRenderer.php

@@ -0,0 +1,58 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_button"
+ */
+class MrmBeCmButtonPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_button') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $buttonType = ($flex['buttonType'] == "0") ? 'button-linlk' : 'button-scream';
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.strip_tags($flex['text']).'</em><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.strip_tags($buttonType).'</em></div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 65 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChatbotDirectPreviewRenderer.php

@@ -0,0 +1,65 @@
+<?php
+
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_paragraph"
+ */
+class MrmBeCmChatbotDirectPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+   * Preprocesses the preview rendering of a content element of type "My new content element"
+   *
+   * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+   * @param bool $drawItem Whether to draw the item using the default functionality
+   * @param string $headerContent Header content
+   * @param string $itemContent Item content
+   * @param array $row Record row of tt_content
+   *
+   * @return void
+   */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  ) {
+    if ($row['CType'] === 'mrm_be_cm_chatbot-direct') {
+
+      $headerContent = '<b>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.title', '') . '</b>';
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+      $terms = strip_tags($flex['settings']['terms']);
+      
+      $url = strip_tags($flex['settings']['url']) ?? '';
+
+      $itemContent = '<div style="display: flex; flec-direction: row; justify-content: flex-start;">';
+      $itemContent .= '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/' . $row['CType'] . '.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.title', '') . ':</strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.terms', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $terms . '</em></strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.url', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $url . '</em></strong></div>';
+
+      $drawItem = false;
+    }
+  }
+}

+ 68 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChatbotPreviewRenderer.php

@@ -0,0 +1,68 @@
+<?php
+
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_paragraph"
+ */
+class MrmBeCmChatbotPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+   * Preprocesses the preview rendering of a content element of type "My new content element"
+   *
+   * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+   * @param bool $drawItem Whether to draw the item using the default functionality
+   * @param string $headerContent Header content
+   * @param string $itemContent Item content
+   * @param array $row Record row of tt_content
+   *
+   * @return void
+   */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  ) {
+    if ($row['CType'] === 'mrm_be_cm_chatbot') {
+
+      $headerContent = '<b>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.title', '') . '</b>';
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+      $terms = strip_tags($flex['settings']['terms']);
+      $type = strip_tags($flex['settings']['type']) ?? '';
+      $category = strip_tags($flex['settings']['category']) ?? '';
+      $url = strip_tags($flex['settings']['url']) ?? '';
+
+      $itemContent = '<div style="display: flex; flec-direction: row; justify-content: flex-start;">';
+      $itemContent .= '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/' . $row['CType'] . '.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.title', '') . ':</strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.terms', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $terms . '</em></strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.type', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $type . '</em></strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.category', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $category . '</em></strong><br>';
+      $itemContent .= '<strong>' . \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:' . $row['CType'] . '.url', '') . ':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">' . $url . '</em></strong></div>';
+
+      $drawItem = false;
+    }
+  }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistInputPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-input"
+ */
+class MrmBeCmChecklistInputPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistRadioRangePreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-radiorange"
+ */
+class MrmBeCmChecklistRadioRangePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistScalePreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-scale"
+ */
+class MrmBeCmChecklistScalePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoMultiPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-todo"
+ */
+class MrmBeCmChecklistToDoMultiPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-todo"
+ */
+class MrmBeCmChecklistToDoPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmChecklistYesMaybeNoPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_checklist-yesmaybeno"
+ */
+class MrmBeCmChecklistYesMaybeNoPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 82 - 0
Classes/Hooks/PageLayoutView/MrmBeCmContentimagePreviewRenderer.php

@@ -0,0 +1,82 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmContentimagePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+     if ($row['CType'] === 'mrm_be_cm_contentimage') {
+       $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+       $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+       $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+       $img = '';
+       
+       if($flex['image'] == "1"){
+         $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+         $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+         if($fileObjects && sizeOf($fileObjects) >= 1){
+           $img = array(
+             'reference' => $fileObjects[0]->getReferenceProperties(),
+             'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+             'resource' => $fileObjects[0]
+           );
+         }
+
+         $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+         $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+         $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+       }
+
+       $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$img.'</div></div>';
+
+       $drawItem = false;
+
+       /* *
+       file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+       file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+       file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+       /* */
+     }
+   }
+}

+ 72 - 0
Classes/Hooks/PageLayoutView/MrmBeCmExplorerboxPreviewRenderer.php

@@ -0,0 +1,72 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_explorerbox"
+ */
+class MrmBeCmExplorerboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_explorerbox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $dynamicContent = "<span style=\"flex-direction: column; display: flex;\">Entdeckerbox-Elemente vollständig?<br />";
+        $dynContentCounter = 0;
+        while(1){
+          $dynContentCounter++;
+          if(!isset($flex["head".$dynContentCounter])) break;
+          $dynamicContent .= '<i><strong>Element '.$dynContentCounter.':</strong> '.(($flex["head".$dynContentCounter] && $flex["claim".$dynContentCounter] && $flex["image".$dynContentCounter] && $flex["text".$dynContentCounter]) != '' ? '&check;' : '&times;').'</i>';
+        }
+        $dynamicContent .= "</span>";
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$dynamicContent.'</div></div>';
+
+
+        $drawItem = false;
+
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 64 - 0
Classes/Hooks/PageLayoutView/MrmBeCmExtraInfosboxPreviewRenderer.php

@@ -0,0 +1,64 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmExtraInfosboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_extra_infosbox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['headline'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}
+

+ 47 - 0
Classes/Hooks/PageLayoutView/MrmBeCmFahrplanPreviewRenderer.php

@@ -0,0 +1,47 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmFahrplanPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {}
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmFoldoutH3PreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmFoldoutH3PreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_foldout_h3') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['headline'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmFoldoutPreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmFoldoutPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_foldout') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['headline'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmH2PreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmH2PreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_h2') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['text'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmH3PreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmH3PreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_h3') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['text'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+    }
+}

+ 75 - 0
Classes/Hooks/PageLayoutView/MrmBeCmHeroimagePreviewRenderer.php

@@ -0,0 +1,75 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmHeroimagePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_heroimage') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $img = '';
+        if($flex['image'] == "1"){
+          $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+          $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+          if($fileObjects && sizeOf($fileObjects) >= 1){
+            $img = array(
+              'reference' => $fileObjects[0]->getReferenceProperties(),
+              'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+              'resource' => $fileObjects[0]
+            );
+          }
+
+          $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+          $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+          $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+        }
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$img.'</div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmHighlightboxPreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_highlightbox"
+ */
+class MrmBeCmHighlightboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_highlightbox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><i>Icon: '.$flex['icon'].'</i><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">Text: '.strip_tags($flex['text']).'</em></div></div>';
+
+        $drawItem = false;
+
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmHtmlPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmHtmlPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 89 - 0
Classes/Hooks/PageLayoutView/MrmBeCmImageplusPreviewRenderer.php

@@ -0,0 +1,89 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmImageplusPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_imageplus') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        // print_r($flex);
+        // die();
+        $img = '';
+        if($flex['image'] == "1"){
+          $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+          $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+          if($fileObjects && sizeOf($fileObjects) >= 1){
+            $img = array(
+              'reference' => $fileObjects[0]->getReferenceProperties(),
+              'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+              'resource' => $fileObjects[0]
+            );
+          }
+
+          $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+          $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+          $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+        }
+
+        $headline = $flex['headline'] ?? '';
+        $description = $flex['description'] ?? '';
+        $link = $flex['link'] ?? '';
+        $customcss = $flex['customcss'] ?? '';
+
+        $itemContent .= '<div style="display: flex; flex-direction: column; justify-content: flex-start;">';
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;">';
+        $itemContent .= '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;">';
+        $itemContent .= '<div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$img.'</div></div>';
+        $itemContent .= '<div>'.$headline.'</div>';
+        $itemContent .= '<div>'.$description.'</div>';
+        $itemContent .= '<div>'.$link.'</div>';
+        $itemContent .= '<div>'.$customcss.'</div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmInfoboxPreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmInfoboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_infobox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['headline'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 57 - 0
Classes/Hooks/PageLayoutView/MrmBeCmInjectionPreviewRenderer.php

@@ -0,0 +1,57 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_injection"
+ */
+class MrmBeCmInjectionPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+     if ($row['CType'] === 'mrm_be_cm_injection') {
+       $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+       $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+       $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+       $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['text'].'</em></div></div>';
+
+       $drawItem = false;
+     }
+   }
+}

+ 64 - 0
Classes/Hooks/PageLayoutView/MrmBeCmInterviewantwortPreviewRenderer.php

@@ -0,0 +1,64 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_interviewfrage"
+ */
+class MrmBeCmInterviewantwortPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_interviewantwort') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $lang = $flex['lang'] ?? '';
+        $answer = trim($flex['answer']);
+        $interviewee = trim($flex['interviewee']);
+        $languageFile = 'LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:';
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;">';
+        $itemContent .= '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;">';
+        $itemContent .= '<div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($languageFile.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$lang.'<br>'.$interviewee.'<br>'.$answer.'</em></div></div>';
+
+        $drawItem = false;
+
+      }
+   }
+}

+ 60 - 0
Classes/Hooks/PageLayoutView/MrmBeCmInterviewfragePreviewRenderer.php

@@ -0,0 +1,60 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_interviewfrage"
+ */
+class MrmBeCmInterviewfragePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_interviewfrage') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;">';
+        $itemContent .= '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;">';
+        $itemContent .= '<div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['question'].'<br>'.$flex['lang'].'</em></div></div>';
+
+        $drawItem = false;
+
+      }
+   }
+}

+ 57 - 0
Classes/Hooks/PageLayoutView/MrmBeCmIntrotextPreviewRenderer.php

@@ -0,0 +1,57 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmIntrotextPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_introtext') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['text'].'</em></div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 65 - 0
Classes/Hooks/PageLayoutView/MrmBeCmLinkagePreviewRenderer.php

@@ -0,0 +1,65 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmLinkagePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+  * Preprocesses the preview rendering of a content element of type "My new content element"
+  *
+  * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+  * @param bool $drawItem Whether to draw the item using the default functionality
+  * @param string $headerContent Header content
+  * @param string $itemContent Item content
+  * @param array $row Record row of tt_content
+  *
+  * @return void
+  */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  )
+  {
+    if ($row['CType'] === 'mrm_be_cm_linkage') {
+
+      $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+      $linkCount = $flex['dynamicComponents'] ? sizeof($flex['dynamicComponents']) : 0;
+      $berufenetCount = $flex['dynamicComponentsBerufeNet'] ? sizeof($flex['dynamicComponentsBerufeNet']) : 0;
+      $berufsausbildungCount = $flex['dynamicComponentsBerufsausbildung'] ? sizeof($flex['dynamicComponentsBerufsausbildung']) : 0;
+      $berufetvCount = $flex['dynamicComponentsBerufeTV'] ? sizeof($flex['dynamicComponentsBerufeTV']) : 0;
+      $ba_searchCount = $flex['dynamicComponentsBASearch'] ? sizeof($flex['dynamicComponentsBASearch']) : 0;
+      $studienwahlCount = $flex['dynamicComponentsStudienwahl'] ? sizeof($flex['dynamicComponentsStudienwahl']) : 0;
+
+      $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$linkCount.'&times;Vernetzung<br/>'.$berufsausbildungCount.'&times;Berufsausbildung</br>'.$berufetvCount.'&times;BERUFETV<br/>'.$ba_searchCount.'&times;BA-Studiensuche<br/>'.$studienwahlCount.'&times;Studienwahl<br/>Check-U-Link? '.(($flex['enable_check_u'] == true) ? '&check;' : '&times;').'<br/>Studiencheck-Link? '.(($flex['enable_studiencheck'] == true) ? '&check;' : '&times;').'</em></div></div>';
+
+      $drawItem = false;
+    }
+  }
+}

+ 65 - 0
Classes/Hooks/PageLayoutView/MrmBeCmMenuPreviewRenderer.php

@@ -0,0 +1,65 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_menu"
+ */
+class MrmBeCmMenuPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_menu') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><i>Headline: '.$flex['headline'].'</i><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;"></em></div></div>';
+
+        $drawItem = false;
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 63 - 0
Classes/Hooks/PageLayoutView/MrmBeCmMovingimagesvideoPreviewRenderer.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmMovingimagesvideoPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_movingimagesvideo') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$flex['vid'].'</em></div></div>';
+
+        $drawItem = false;
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmNewsletteraboPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_newsletterabo"
+ */
+class MrmBeCmNewsletteraboPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 57 - 0
Classes/Hooks/PageLayoutView/MrmBeCmParagraphPreviewRenderer.php

@@ -0,0 +1,57 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_paragraph"
+ */
+class MrmBeCmParagraphPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_paragraph') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.strip_tags($flex['text']).'</em></div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 74 - 0
Classes/Hooks/PageLayoutView/MrmBeCmPicturechoicePreviewRenderer.php

@@ -0,0 +1,74 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_picturechoice"
+ */
+class MrmBeCmPicturechoicePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_picturechoice') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $dynamicContent = "<span><i>Frage:</i> ".$flex["question"]."</span><span style=\"flex-direction: row; display: flex; flex-direction: column;\">";
+        for($i = 1; $i <= 3; $i++){
+          $imgs = '';
+          for($j = 1; $j <= 5; $j++){
+            $imgs .= $flex["image".$i."_".$j] == "1" ? "√" : "&times;";
+          }
+          $dynamicContent .= "<span><i>Set ".$i.":</i> ".$imgs."</span>";
+        }
+        $dynamicContent .= "</span>";
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$dynamicContent.'</div></div>';
+
+        $drawItem = false;
+
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 61 - 0
Classes/Hooks/PageLayoutView/MrmBeCmPodcastPreviewRenderer.php

@@ -0,0 +1,61 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Extbase\Utility\LocalizationUtility;
+
+/**
+ * Contains a preview rendering for the page module for CTYPE="mrm_be_cm_podcast"
+ */
+class MrmBeCmPodcastPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+     /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    * @return void
+    */
+    public function preProcess(
+        PageLayoutView &$parentObject,
+        &$drawItem,
+        &$headerContent,
+        &$itemContent,
+        array &$row
+    )
+    {
+        if($row['CType'] === 'mrm_be_cm_podcast') {
+            // Hier wird das aussehen der oben angezeigt Komponent festgelegt
+            $headerContent = '<b>' . LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+            $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+            $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+            $media = [];
+            if($flex['media'] == '1') {
+                $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+                $fileObjects = $fileRepository->findByRelation('tt_content', 'media', $row['uid']);
+
+                if($fileObjects && sizeOf($fileObjects) >= 1){
+                    $media = array(
+                      'reference' => $fileObjects[0]->getReferenceProperties(),
+                      'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+                      'resource' => $fileObjects[0]
+                    );
+                  }
+            }
+            //console_log($media);
+            $media = $media['original']['name'];
+            
+            $transcript = $flex['transcript'];
+
+            $itemContent .= '<div><div style="display: flex;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="min-width: 0;"><strong>'.LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><br/>'.$media.'</div></div><div>'.$transcript.'</div></div>';
+
+            $drawItem = false;
+        }
+    }
+}

+ 75 - 0
Classes/Hooks/PageLayoutView/MrmBeCmPostimagePreviewRenderer.php

@@ -0,0 +1,75 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmPostimagePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_postimage') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $img = '';
+        if($flex['image'] == "1"){
+          $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+          $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+          if($fileObjects && sizeOf($fileObjects) >= 1){
+            $img = array(
+              'reference' => $fileObjects[0]->getReferenceProperties(),
+              'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+              'resource' => $fileObjects[0]
+            );
+          }
+
+          $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+          $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+          $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+        }
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$img.'</div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 75 - 0
Classes/Hooks/PageLayoutView/MrmBeCmPublicationPreviewRenderer.php

@@ -0,0 +1,75 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmPublicationPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_publication') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $img = '';
+        if($flex['image'] == "1"){
+          $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+          $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+          if($fileObjects && sizeOf($fileObjects) >= 1){
+            $img = array(
+              'reference' => $fileObjects[0]->getReferenceProperties(),
+              'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+              'resource' => $fileObjects[0]
+            );
+          }
+
+          $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+          $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+          $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+        }
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong><span>'.$flex["issuenumber"].': '.$flex["issuetitle"].' --&gt; '.$flex["issueheadline"].'</span>'.$img.'</div></div>';
+
+        $drawItem = false;
+      }
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmQuizPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmQuizPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmQuizdirectPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmQuizdirectPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+   * Preprocesses the preview rendering of a content element of type "My new content element"
+   *
+   * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+   * @param bool $drawItem Whether to draw the item using the default functionality
+   * @param string $headerContent Header content
+   * @param string $itemContent Item content
+   * @param array $row Record row of tt_content
+   *
+   * @return void
+   */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  ) {
+  }
+}

+ 82 - 0
Classes/Hooks/PageLayoutView/MrmBeCmRawimagePreviewRenderer.php

@@ -0,0 +1,82 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmRawimagePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+     if ($row['CType'] === 'mrm_be_cm_rawimage') {
+       $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+       $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+       $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+       $img = '';
+       //file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+       if($flex['image'] == "1"){
+         $fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+         $fileObjects = $fileRepository->findByRelation('tt_content', 'image', $row['uid']);
+
+         if($fileObjects && sizeOf($fileObjects) >= 1){
+           $img = array(
+             'reference' => $fileObjects[0]->getReferenceProperties(),
+             'original' => $fileObjects[0]->getOriginalFile()->getProperties(),
+             'resource' => $fileObjects[0]
+           );
+         }
+
+         $params = '{"fileId":'.$img['original']['uid'].',"configuration":{"width":64,"height":"64c","crop":{},"_context":"Image.CropScaleMask"}}';
+         $thumbnailUrl = \TYPO3\CMS\Backend\Utility\BackendUtility::getThumbnailUrl($img["original"]["uid"], ["width" => 64, "height" => "64c", "crop" => [], "_context" => "Image.CropScaleMask"]);
+
+         $img = '<img src="'.$thumbnailUrl.'" width="64" height="64"/><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$img['original']['name'].'</em>';
+       }
+
+       $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$img.'</div></div>';
+
+       $drawItem = false;
+
+       /* *
+       file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+       file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+       file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+       /* */
+     }
+   }
+}

+ 55 - 0
Classes/Hooks/PageLayoutView/MrmBeCmRedirectsPreviewRenderer.php

@@ -0,0 +1,55 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Extbase\Utility\LocalizationUtility;
+
+/**
+ * Contains a preview rendering for the page module for CTYPE="mrm_be_cm_redirects"
+ */  
+class MrmBeCmRedirectsPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+     /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    * @return void
+    */
+    public function preProcess(
+        PageLayoutView &$parentObject,
+        &$drawItem,
+        &$headerContent,
+        &$itemContent,
+        array &$row
+    )
+    {
+        if($row['CType'] === 'mrm_be_cm_redirects') {
+            // Hier wird das aussehen der oben angezeigt Komponent festgelegt
+            $headerContent = '<b>' . LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+            $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+            $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+            $source_path = $flex['source_path'];
+            
+            $target = $flex['target'];
+
+            $target_statuscode = $flex['target_statuscode'];
+
+            $html = [];
+            $html[] = '<div style="display: flex; flex-direction: row; justify-content: flex-start">';
+            $html[] = '<img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;">';
+            $html[] = '<div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>';
+            $html[] = '<br />'.$source_path.'<br/>'.$target.'<br/>'.$target_statuscode.'</div></div>';
+            $itemContent = implode('', $html);
+
+            $drawItem = false;
+        }
+    }
+}

+ 73 - 0
Classes/Hooks/PageLayoutView/MrmBeCmStatementboxPreviewRenderer.php

@@ -0,0 +1,73 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_statementbox"
+ */
+class MrmBeCmStatementboxPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+      if ($row['CType'] === 'mrm_be_cm_statementbox') {
+        $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+        $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $dynamicContent = "<span style=\"flex-direction: row; display: flex;\">";
+        $dynContentCounter = 0;
+        while(1){
+          $dynContentCounter++;
+          if(!isset($flex['text'.$dynContentCounter])) break;
+          $dynamicContent .= '<i style="margin: 5px; padding: 5px;"><strong>Zitat '.$dynContentCounter.':</strong><br />Text: '.($flex["text".$dynContentCounter] != '' ? '&check;' : '&times;').'<br/>Bild: '.($flex["image".$dynContentCounter] != 0 ? '&check;' : '&times;').'<br />Name: '.($flex["name".$dynContentCounter] != '' ? '&check;' : '&times;').'</i>';
+        }
+        $dynamicContent .= "</span>";
+
+        $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').':</strong>'.$dynamicContent.'</div></div>';
+
+        $drawItem = false;
+
+
+        /*
+        file_put_contents('/var/www/html/typo3temp/debug.log', json_encode($flex, JSON_PRETTY_PRINT).PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', $itemContent.PHP_EOL, FILE_APPEND);
+        file_put_contents('/var/www/html/typo3temp/debug.log', '----'.PHP_EOL, FILE_APPEND);
+        */
+      }
+   }
+}

+ 71 - 0
Classes/Hooks/PageLayoutView/MrmBeCmThemaDerWochePreviewRenderer.php

@@ -0,0 +1,71 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmThemaDerWochePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+  * Preprocesses the preview rendering of a content element of type "My new content element"
+  *
+  * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+  * @param bool $drawItem Whether to draw the item using the default functionality
+  * @param string $headerContent Header content
+  * @param string $itemContent Item content
+  * @param array $row Record row of tt_content
+  *
+  * @return void
+  */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  )
+  {
+    if ($row['CType'] === 'mrm_be_cm_themaderwoche') {
+
+      $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+      $days = '';
+      $days .= 'Montag: '.($flex["monday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Dienstag: '.($flex["tuesday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Mittwoch: '.($flex["wednesday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Donnerstag: '.($flex["thursday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Freitag: '.($flex["friday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Samstag: '.($flex["saturday"] != '' ? '&check;' : '&times;').'<br />';
+      $days .= 'Sonntag: '.($flex["sunday"] != '' ? '&check;' : '&times;');
+
+      $kw = new \DateTime();
+      $kw->setTimestamp($flex["starttime"]);
+      $kw = $kw->format('W');
+
+      $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').' (KW '.$kw.'):</strong> '.$flex['key'].'<br /><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$days.'</em></div></div>';
+
+      $drawItem = false;
+    }
+  }
+}

+ 74 - 0
Classes/Hooks/PageLayoutView/MrmBeCmTopthemenPreviewRenderer.php

@@ -0,0 +1,74 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_topthemen"
+ */
+class MrmBeCmTopthemenPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+  /**
+  * Preprocesses the preview rendering of a content element of type "My new content element"
+  *
+  * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+  * @param bool $drawItem Whether to draw the item using the default functionality
+  * @param string $headerContent Header content
+  * @param string $itemContent Item content
+  * @param array $row Record row of tt_content
+  *
+  * @return void
+  */
+  public function preProcess(
+    PageLayoutView &$parentObject,
+    &$drawItem,
+    &$headerContent,
+    &$itemContent,
+    array &$row
+  )
+  {
+    if ($row['CType'] === 'mrm_be_cm_topthemen') {
+
+      $headerContent = '<b>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+      $sections = '';
+      $sections .= 'Mo–Mi Woche 1: '.($flex["section1"] != '' ? '&check;' : '&times;').'<br />';
+      $sections .= 'Do–Sa Woche 1: '.($flex["section2"] != '' ? '&check;' : '&times;').'<br />';
+      $sections .= 'So–Di Woche 1/2: '.($flex["section3"] != '' ? '&check;' : '&times;').'<br />';
+      $sections .= 'Mi–Fr Woche 2: '.($flex["section4"] != '' ? '&check;' : '&times;').'<br />';
+      $sections .= 'Sa–So Woche 2: '.($flex["section5"] != '' ? '&check;' : '&times;');
+
+      $sectionStart = new \DateTime();
+      $sectionStart->setTimestamp($flex['starttime']);
+      $sectionStart = $sectionStart->format('W');
+
+      $sectionEnd = new \DateTime();
+      $sectionEnd->setTimestamp($flex['starttime']);
+      $sectionEnd->modify('+ 13 days');
+      $sectionEnd = $sectionEnd->format('W');
+
+      $itemContent .= '<div style="display: flex; flex-direction: row; justify-content: flex-start;"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').' (Kalenderwochen '.$sectionStart.' und '.$sectionEnd.'):</strong> '.$flex['key'].'<br /><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$sections.'</em></div></div>';
+
+      $drawItem = false;
+    }
+  }
+}

+ 48 - 0
Classes/Hooks/PageLayoutView/MrmBeCmVotingPreviewRenderer.php

@@ -0,0 +1,48 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+
+/**
+ * Contains a preview rendering for the page module of CType="mrm_be_cm_introtext"
+ */
+class MrmBeCmVotingPreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+
+   /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    *
+    * @return void
+    */
+   public function preProcess(
+      PageLayoutView &$parentObject,
+      &$drawItem,
+      &$headerContent,
+      &$itemContent,
+      array &$row
+   )
+   {
+   }
+}

+ 52 - 0
Classes/Hooks/PageLayoutView/MrmbeCmMaintenancePreviewRenderer.php

@@ -0,0 +1,52 @@
+<?php
+namespace Meramo\mrm_be\Hooks\PageLayoutView;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
+use \TYPO3\CMS\Backend\View\PageLayoutView;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Extbase\Utility\LocalizationUtility;
+
+/**
+ * Contains a preview rendering for the page module for CTYPE="mrm_be_cm_maintenance"
+ */
+class MrmBeCmMaintenancePreviewRenderer implements PageLayoutViewDrawItemHookInterface
+{
+     /**
+    * Preprocesses the preview rendering of a content element of type "My new content element"
+    *
+    * @param \TYPO3\CMS\Backend\View\PageLayoutView $parentObject Calling parent object
+    * @param bool $drawItem Whether to draw the item using the default functionality
+    * @param string $headerContent Header content
+    * @param string $itemContent Item content
+    * @param array $row Record row of tt_content
+    * @return void
+    */
+    public function preProcess(
+        PageLayoutView &$parentObject,
+        &$drawItem,
+        &$headerContent,
+        &$itemContent,
+        array &$row
+    )
+    {
+        if($row['CType'] === 'mrm_be_cm_maintenance') {
+            // Hier wird das aussehen der oben angezeigt Komponent festgelegt
+            $headerContent = '<b>' . LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').'</b>';
+            $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+            $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+            
+            $start = $flex['starttime'];
+            $start = date('d.m.Y H:i', $start);
+
+            $end = $flex['endtime'];
+            $end = date('d.m.Y H:i', $end);
+
+            $infotext = $flex['infotext'];
+
+            $itemContent = '<div style="display: flex; flex-direction: row; justify-content: flex-start"><img src="/typo3conf/ext/mrm_be/Resources/Public/Icons/'.$row['CType'].'.svg" style="width: 32px; height: 32px; margin-right: 6px;"><div style="display: flex; flex-direction: column; min-width: 0;"><strong>'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').': </strong><b>'.$flex['key'].'</b><br>'.$start.'<br>'.$end.'<br><em style="white-space:nowrap; overflow:hidden;text-overflow: ellipsis;">'.$infotext.'</em></div></div>';
+
+            $drawItem = false;
+        }
+    }
+}

+ 2380 - 0
Classes/Hooks/TCE/TCEMainHook.php

@@ -0,0 +1,2380 @@
+<?php
+
+namespace Meramo\mrm_be\Hooks\TCE;
+
+use DOMDocument;
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Database\ConnectionPool;
+use \TYPO3\CMS\Core\Database\Connection;
+use \TYPO3\CMS\Core\Service\FlexFormService;
+use \TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools;
+use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
+use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
+use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
+
+use \Meramo\mrm_be\Mongoer as Mongoer;
+
+require_once GeneralUtility::getFileAbsFileName('typo3conf/ext/mrm_be/Resources/Private/PHP/phpqrcode/qrlib.php');
+
+class TCEMainHook
+{
+  protected $imageSizes = array(
+    'mrm_be_cm_publication' => array(
+      'passthru' => array(
+        'small' => array('width' => 256),
+        'big' => array('width' => 512)
+      )
+    ),
+    'mrm_be_cm_homeheaderinfo' => array(
+      'i_1_1' => array(
+        'i_1_1' => array('width' => 140, 'height' => 140),
+      ),
+      'i_16_9' => array(
+        'i_16_9' => array('width' => 140, 'height' => 79),
+      ),
+      'default' => array(
+        'default' => array('width' => 140, 'height' => 94),
+      )
+    ),
+    'mrm_be_cm_explorerbox' => array(
+      'i_1_1' => array(
+        'img' => array('width' => 500, 'height' => 500),
+      )
+    ),
+    'mrm_be_cm_statementbox' => array(
+      'i_1_1' => array(
+        'img' => array('width' => 160, 'height' => 160),
+      )
+    ),
+    'mrm_be_cm_checklist-radiorange' => array(
+      'i_1_1' => array(
+        'img' => array('width' => 160, 'height' => 160),
+      )
+    ),
+    'mrm_be_cm_tileoverview' => array(
+      'default' => array(
+        'default_hero_lte600' => array('width' => 560, 'height' => 373),
+      )
+    ),
+    'mrm_be_cm_heroimage' => array(
+      'default' => array(
+        'lte600' => array('width' => 560, 'height' => 373),
+        'gt600' => array('width' => 408, 'height' => 272)
+      ),
+    ),
+    'mrm_be_cm_imageplus' => array(
+      'default' => array(
+        'ratio32' => array('width' => 439, 'height' => 293)
+      ),
+      'i_16_9' => array(
+        'ratio169' => array('width' => 727, 'height' => 409)
+      ),
+      'i_21_9' => array(
+        'ratio219' => array('width' => 984, 'height' => 422)
+      )
+    ),
+    'mrm_be_cm_contentimage' => array(
+      'i_1_1' => array(
+        'content_image' => array('width' => 160, 'height' => 160),
+        'content_image_maximized_lte600' => array('width' => 560, 'height' => 560),
+        'content_image_maximized_gt600' => array('width' => 460, 'height' => 460),
+      ),
+    ),
+    'mrm_be_cm_rawimage' => array('passthru' => true),
+    'mrm_be_cm_animation' => array('passthru' => true),
+    'mrm_be_cm_picturechoice' => array(
+      'i_1_1' => array(
+        'pic' => array('width' => 300, 'height' => 300)
+      )
+    ),
+    'overview_image' => array(
+      'default' => array(
+        'home_topics_lte767' => array('width' => 725, 'height' => 484),
+        'home_topics_gt767' => array('width' => 313, 'height' => 209),
+        'sidebar_banner_lte840' => array('width' => 100, 'height' => 66),
+        'rubrik_overview' => array('width' => 318, 'height' => 212),
+        'default_hero_lte600' => array('width' => 560, 'height' => 373),
+        'default_hero_gt600' => array('width' => 408, 'height' => 272, 'allowed_doktypes' => ['102']),
+      ),
+      'i_1_1' => array(
+        'home_rubrik' => array('width' => 95, 'height' => 95),
+        'archive_block' => array('width' => 160, 'height' => 160),
+        'square_big' => array('width' => 520, 'height' => 520),
+      ),
+      'i_16_9' => array(
+        'og' => array('width' => 1200, 'height' => 675),
+        'sidebar_banner_gt840' => array('width' => 282, 'height' => 159),
+      ),
+      'i_21_9' => array(
+        'flat_tile' => array('width' => 400, 'height' => 171),
+        'flat_big' => array('width' => 700, 'height' => 300),
+      ),
+    )
+  );
+
+  private $imageService;
+  private $resourceFactory;
+  private $fileRepository;
+  private $environmentService;
+  private $queryBuilder;
+  private $pageQueryBuilder;
+  private $pageRepository;
+  private $linkService;
+  private $connection;
+
+  function __construct()
+  {
+    $this->environmentService = GeneralUtility::makeInstance("TYPO3\CMS\Extbase\Service\EnvironmentService");
+    $this->resourceFactory = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\ResourceFactory');
+    $this->imageService = GeneralUtility::makeInstance("TYPO3\CMS\Extbase\Service\ImageService");
+    $this->fileRepository = GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\FileRepository');
+    $this->pageRepository = GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Page\PageRepository');
+    $this->linkService = GeneralUtility::makeInstance('TYPO3\CMS\Core\LinkHandling\LinkService');
+
+    $connection = GeneralUtility::makeInstance(ConnectionPool::class);
+    $this->connection = $connection;
+
+    $this->queryBuilder = $connection->getQueryBuilderForTable('tt_content');
+    $this->queryBuilder->getRestrictions()->removeAll()
+      ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
+      ->add(GeneralUtility::makeInstance(HiddenRestriction::class));
+
+    $this->pageQueryBuilder = $connection->getQueryBuilderForTable('pages');
+    $this->pageQueryBuilder->getRestrictions()->removeAll();
+  }
+
+  public function processDatamap_beforeStart($pObj)
+  {
+    if (!isset($pObj->datamap['pages'])) return;
+
+    foreach ($pObj->datamap['pages'] as $pid => &$_d) {
+      if (!$pid || $pid < 0) continue;
+      $starttime = $_d["starttime"];
+      if ($starttime != 0)
+        $_d["starttime"] = $this->startOfDay($starttime, null, true, true);
+      $endtime = $_d["endtime"];
+      if ($endtime != 0)
+        $_d["endtime"] = $this->endOfDay($endtime, null, true, true);
+
+      switch ($_d["red_status"]) {
+        case "-1": //neu angelegt
+        case "1": //in Bearbeitung
+        case "2": //vorbereitet
+        case "3": //geprüft
+        case "21": //gesperrt
+        case "22": //archiviert
+          $_d["hidden"] = 1;
+          break;
+        case "11": //frei
+        case "12": //online
+          $_d["hidden"] = 0;
+          break;
+        default:
+          break;
+      }
+    }
+  }
+
+  public function processCmdmap_afterFinish(\TYPO3\CMS\Core\DataHandling\DataHandler &$pObj)
+  {
+    if (!isset($pObj->datamap['pages'])) return;
+
+    foreach ($pObj->datamap['pages'] as $pid => $_d) {
+      if (!$pid || $pid < 0) continue;
+      $this->log('processing PID: ' . $pid);
+
+      $pageStatement = $this->pageQueryBuilder
+        ->select('*')
+        ->from('pages')
+        ->setMaxResults(1)
+        ->where(
+          $this->pageQueryBuilder->expr()->eq('uid', $this->pageQueryBuilder->createNamedParameter($pid))
+        )
+        ->execute();
+
+      $post = $pageStatement->fetchAll();
+      $post = $post[0];
+
+      if (!$post) continue;
+
+      if ($post['doktype'] == 254) {
+        $this->processFolderContent($post);
+        continue;
+      }
+
+      if ($post['hidden'] == 1 || $post['deleted'] == 1) {
+        Mongoer::sendRequest("pages", "delete", array("pageuid" => $pid));
+        Mongoer::sendRequest("abialtcache", "delete", array("pageuid" => $pid));
+        Mongoer::sendRequest("search", "delete", array("pageuid" => $pid));
+        Mongoer::sendRequest("security", "delete", array("pageuid" => $pid));
+
+        // DELETE existing page PDF
+        $this->deletePagePDFIfExists($post['slug']);
+        //continue;
+      }
+
+      $rootlineutil = GeneralUtility::makeInstance('TYPO3\CMS\Core\Utility\RootlineUtility', $pid);
+      $rootline = array_reverse($rootlineutil->get($pid));
+
+      $processedImages = array();
+      $slugData = $this->constructSlug($pid);
+      if (!$slugData) {
+        $this->log($pid . " slugData empty");
+        continue;
+      }
+
+      $qrfilename = '/var/www/html/public/typo3temp/' . mt_rand(0, 0xffffff) . '_' . mt_rand(0, 0xffffff) . '.svg';
+      \QRcode::svg("https://abi.de" . $slugData, $qrfilename);
+      $qrsvg = file_get_contents($qrfilename);
+      unlink($qrfilename);
+
+      $statement = $this->queryBuilder
+        ->select('*')
+        ->from('tt_content')
+        ->where(
+          $this->queryBuilder->expr()->eq('pid', $this->queryBuilder->createNamedParameter($pid))
+        )
+        ->execute();
+
+      $fetchedTTContent = array();
+      $pageType = "article";
+      //$this->log($post["doktype"]);
+      if ($post["doktype"] == 100) $pageType = "event-page";
+      if ($post["doktype"] == 101) $pageType = "blog-page";
+      if ($post["doktype"] == 102) $pageType = "blogger-page";
+      if ($post["doktype"] == 103) $pageType = "archive";
+      if ($post["doktype"] == 104) $pageType = "video-page";
+      if ($post['is_siteroot'] == 1) $pageType = "home";
+      // $overview_image = null;
+
+      while ($row = $statement->fetch()) {
+        $fetchedTTContent[] = $row;
+        $row["doktype"] = $post["doktype"];
+      }
+
+      /* look for overview_image start */
+      if ($pageType == "blogger-page" || $pageType == "video-page") {
+        $overview_image = $this->processImagesTTContent($post, 'overview_image', 'pages', 'overview_image');
+        $overview_image = $overview_image[0] ? $overview_image[0] : null;
+      }
+
+      if (!$overview_image) {
+        $x = $this->findFirstAppearingElementByType("mrm_be_cm_postimage", $fetchedTTContent, "CType");
+        if ($x) {
+          $overview_image = $this->processImagesTTContent($x, 'overview_image');
+          $overview_image = $overview_image[0] ? $overview_image[0] : null;
+        }
+      }
+
+      if (!$overview_image) {
+        foreach ($fetchedTTContent as $row) {
+          if (!$overview_image && ($row['CType'] == "mrm_be_cm_heroimage" || $row['CType'] == "mrm_be_cm_contentimage" || $row['CType'] == "mrm_be_cm_rawimage")) {
+            $overview_image = $this->processImagesTTContent($row, 'overview_image');
+            $overview_image = $overview_image[0] ? $overview_image[0] : null;
+          }
+        }
+      }
+
+      /* look for overview_image end */
+
+      if ($pageType != "home") {
+        $initialContent = $this->createContentElement($pageType, array(), (object) array(), array());
+        $initialH1Attribs = array();
+        if ($post["roof"] && $post["roof"] != '') $initialH1Attribs["roof"] = $post["roof"];
+        if ($post["title"] && $post["title"] != '') $initialH1Attribs["text"] = $post["title"];
+        if (sizeof($initialH1Attribs) > 0) $initialContent["subElements"][] = $this->createContentElement("h1", array(), $initialH1Attribs);
+      }
+
+      $processedData = array(
+        'pageuid' => $pid,
+        'documentLanguage' => $post['documentlanguage'],
+        'url' => $slugData,
+        'shareableUrl' => "https://abi.de" . $slugData,
+        'title' => ($post['roof'] != '' ? $post['roof'] . ": " : "") . $post['title'],
+        'activeMenuPage' => $post['targetgroup'],
+        'overviewImage' => $overview_image,
+        'teasers' => array(
+          'teaserHome' => $post['teaserHome'],
+          'abstract' => $this->removeLinebreaks($post['abstract']),
+          'teaserOverview' => $post['teaserOverview'],
+          'title' => $post['title'],
+          'roof' => $post['roof'],
+          'intro' => ($pageType == 'blogger-page') ? $post['overview'] : $post['intro']
+        ),
+        'sharingActivated' => $post['sharing_activated'] == 1 ? true : false,
+        'linkableInHTMLSitemap' => $post['forHTMLSitemap'] == 1 ? true : false,
+        'linkableOnHome' => $post['forHome'] == 1 ? true : false,
+        'linkableOnCategoryOverview' => $post['forCategoryOverview'] == 1 ? true : false,
+        'moveToTopPositionOnCategoryOverview' => $post['forCategoryOverviewTopPosition'] == 1 ? true : false,
+        'pageType' => $pageType,
+        'pageData' => array(
+          'title' => ($post['roof'] != '' ? $post['roof'] . ": " : "") . $post['title'],
+          'metas' => array(
+            "<meta name=\"keywords\" content=\"" . $post["keywords"] . "\">",
+            "<meta name=\"dcterms.date\" content=\"" . date("Y-m-d", $post['tstamp'] > $post['starttime'] ? $post['tstamp'] : $post['starttime']) . "\">",
+            "<meta name=\"robots\" content=\"" . ($post['no_index'] == 0 ? "index" : "noindex") . ", " . ($post['no_follow'] == 0 ? "follow" : "nofollow") . "\" />",
+            "<meta property=\"og:title\" content=\"" . ($post['roof'] != '' ? $post['roof'] . ": " : "") . $post['title'] . "\">",
+            ($overview_image ? "<meta property=\"og:image\" content=\"https://abi.de/cdn/" . $overview_image["sources"]["og"] . "\" >" : ""),
+          ),
+          'breadcrumbs' => $this->constructBreadCrumb($rootline, $post, $pageType),
+          'content' => $initialContent,
+          'sidebar' => $this->createContentElement("sidebar", array(), (object) array(), array()),
+        ),
+        'linkedPosts' => array(),
+        'injections' => array(),
+        'qr2page' => $qrsvg,
+        'status' => $this->constructStatus($post)
+      );
+
+      //before content
+      switch ($pageType) {
+        case "blog-page":
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "blog-author-info"));
+          $processedData["injections"][] = "blog-author-info";
+          $processedData["pageData"]["sidebar"]["subElements"][] = $this->createContentElement("injection", array("type" => "blog-page-sidebar"));
+          $processedData["injections"][] = "blog-page-sidebar";
+          break;
+
+        case "blogger-page":
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "blogger-page-author-image"));
+          $processedData["injections"][] = "blogger-page-author-image";
+          $text = $post['overview'] ?? $post['abstract'];
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("typo3_paragraph", array(), array('text' => '<p>' . $this->exchangeLinkBreaksWithBr($text) . '</p>'), null);
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "blogger-page-author-latest-blogs"));
+          $processedData["injections"][] = "blogger-page-author-latest-blogs";
+          $processedData["pageData"]["sidebar"]["subElements"][] = $this->createContentElement("injection", array("type" => "blogger-page-sidebar"));
+          $processedData["injections"][] = "blogger-page-sidebar";
+          break;
+
+        case "video-page":
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "video-date-category"));
+          $processedData["injections"][] = "video-date-category";
+          $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "video-info"));
+          $processedData["injections"][] = "video-info";
+          break;
+      }
+
+      foreach ($fetchedTTContent as $row) {
+        $this->processData($row, $processedData, $processedImages);
+      }
+
+      //after content
+      $processedData['pageData']['metas'][] = $this->constructMetaDescription($post['abstract'], $processedData['pageData']['content']);
+      $processedData['pageData']['metas'][] = $this->constructMetaDescription($post['abstract'], $processedData['pageData']['content'], true);
+
+      if ($pageType == "blog-page") {
+        $processedData['pageData']['metas'][] = $this->constructMetaDescriptionForBlogPage('', $processedData['pageData']['content']);
+        $processedData['pageData']['metas'][] = $this->constructMetaDescriptionForBlogPage('', $processedData['pageData']['content'], true);
+      }
+
+
+
+      $processedData['pageData']['metas'] = array_filter($processedData['pageData']['metas'], function ($val) {
+        return $val != "";
+      });
+
+      switch ($pageType) {
+        case "archive":
+          $hasSpecificOverviewInjection = false;
+          foreach ($processedData["injections"] as $inj) {
+            if (str_contains($inj, "-archive-")) {
+              $hasSpecificOverviewInjection = true;
+              break;
+            }
+          }
+          if (!$hasSpecificOverviewInjection) {
+            $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("injection", array("type" => "archive-of-direct-childurls"));
+            $processedData["injections"][] = "archive-of-direct-childurls";
+          }
+          break;
+        case "event-page":
+          if ($post["event_link"] && $post["event_link"] != "") {
+            $processedData["pageData"]["content"]["subElements"][] = $this->createContentElement("typo3_paragraph", array(), array('text' => '<p><a href="' . $post["event_link"] . '" target="_blank">Weitere Infos zu dieser Veranstaltung »</a></p>'));
+          }
+          break;
+      }
+
+      if (sizeof($processedData['pageData']['sidebar']['subElements']) == 0) {
+        $processedData['pageData']['sidebar'] = null;
+      }
+      if (sizeof($processedData['linkedPosts']) == 0) $processedData['linkedPosts'] = null;
+      else
+        $processedData['linkedPosts'] = array_values(array_unique($processedData['linkedPosts']));
+
+      if (sizeof($processedData['injections']) == 0) $processedData['injections'] = null;
+      else
+        $processedData['injections'] = array_unique($processedData['injections']);
+
+      if ($post['hidden'] == 1) {
+        //TODO: SET STATUS ..
+      }
+
+      $this->deletePagePDFIfExists($processedData['url']);
+      Mongoer::sendRequest("pages", "save", $processedData);
+
+      $this->generatePDFPath($processedData['pageuid'], $processedData['url']);
+
+      Mongoer::sendRequest("abialtcache", "delete", array("pageuid" => $pid));
+      $security_user_pass = $post["security_user_pass"];
+      if (!$security_user_pass || $security_user_pass == '')
+        Mongoer::sendRequest("security", "delete", array("pageuid" => $pid));
+      else {
+        $tmp = array();
+        foreach (preg_split('/\n|\r\n?/', $security_user_pass) as $itm) {
+          $itm = trim($itm);
+          $itm = explode('|', $itm);
+          $tmp[$itm[0]] = $itm[1];
+        }
+        $security_user_pass = $tmp;
+        Mongoer::sendRequest("security", "save", array("pageuid" => $pid, "url" => $processedData["url"], "data" => $security_user_pass));
+      }
+
+      //if($post['doktype'] != 1)   continue;
+
+      if ($post['no_search'] == 0) {
+        $dkzer = new \Meramo\mrm_be\DKZer();
+        $searchwords = $dkzer->getSearchWords($post['dkz_code_nrs']);
+        $freesearchwords = preg_split('/\n|\r|,\n?/', $post['free_searchwords']);
+        foreach ($freesearchwords as $sw) {
+          $searchwords[] = $this->convertStringToTechnicalName($sw);
+        }
+        $ignoredsearchwords = preg_split('/\n|\r|,\n?/', $post['ignored_searchwords']);
+        foreach ($ignoredsearchwords as &$sw) {
+          $sw = $this->convertStringToTechnicalName($sw);
+        }
+        $searchwords = array_values(array_diff($searchwords, $ignoredsearchwords));
+        $searchabletext = $this->constructSearchableText($processedData, true);
+        $searchabletext_full = $this->constructSearchableText($processedData, false);
+
+        $arra = array("pageuid" => $pid, "searchwords" => $searchwords, "text" => $searchabletext, "fulltext" => $searchabletext_full, "lesson" => null);
+        $lessons = array_values(explode(',', $post['lesson']));
+        if (sizeof($lessons) == 1 && $lessons[0] == "") $lessons = [];
+
+        if (sizeof($lessons) > 0) {
+          foreach ($lessons as &$l) $l = (int) $l;
+          $arra['lesson'] = $lessons;
+        }
+        Mongoer::sendRequest("search", "save", $arra);
+      } else Mongoer::sendRequest("search", "delete", array("pageuid" => $pid));
+    }
+  }
+
+  private function createPDFHash($url)
+  {
+    $page = md5($url);
+    return  $page[0] . $page[1] . '/' . $page[2] . $page[3] . '/' . $page . '.pdf';
+  }
+
+  private function deletePagePDFIfExists($url)
+  {
+    $partialpath = \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/pdf-storage/';
+    $file = $this->createPDFHash($url);
+    $filepath = $partialpath . $file;
+
+    if (file_exists($filepath)) {
+      unlink($filepath);
+      return true;
+    } else {
+      return false;
+    }
+  }
+
+  private function generatePDFPath($pageuid, $url)
+  {
+    $urlencoded = urlencode($url);
+    // $this->log($url, true);
+    $urlpart = "https://abi.de/pdfgen?u=";
+    $pdfgenurl = $urlpart . $urlencoded;
+
+    $data = [
+      'pageuid' => $pageuid,
+      'url' => $pdfgenurl,
+      'pdfhash' => $this->createPDFHash($url)
+    ];
+
+    Mongoer::sendRequest('pdfgenjobs', 'save', $data);
+  }
+
+  private function processFolderContent(&$post)
+  {
+    $statement = $this->queryBuilder
+      ->select('*')
+      ->from('tt_content')
+      ->where(
+        $this->queryBuilder->expr()->eq('pid', $this->queryBuilder->createNamedParameter($post["uid"]))
+      )
+      ->execute();
+
+    $fetchedTTContent = array();
+    while ($row = $statement->fetch()) {
+      $fetchedTTContent[] = $row;
+    }
+
+    if ($post['backend_layout'] == 'pagets__19') {
+      $themenderwoche = array();
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      foreach ($fetchedTTContent as $row) {
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $themenderwoche[] = array(
+          "key" => $flex['key'],
+          "starttime" => $this->startOfDay($flex['starttime']),
+          "endtime" => $this->endOfDay($flex['starttime'], '+6 days'),
+          "monday" => (int) $this->parseUIDFromT3Url($flex['monday']),
+          "tuesday" => (int) $this->parseUIDFromT3Url($flex['tuesday']),
+          "wednesday" => (int) $this->parseUIDFromT3Url($flex['wednesday']),
+          "thursday" => (int) $this->parseUIDFromT3Url($flex['thursday']),
+          "friday" => (int) $this->parseUIDFromT3Url($flex['friday']),
+          "saturday" => (int) $this->parseUIDFromT3Url($flex['saturday']),
+          "sunday" => (int) $this->parseUIDFromT3Url($flex['sunday']),
+        );
+      }
+      Mongoer::sendRequest("themaderwoche", "save", array("data" => $themenderwoche));
+    }
+
+    if ($post['backend_layout'] == 'pagets__20') {
+      $menus = array();
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      foreach ($fetchedTTContent as $row) {
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $items = array();
+        foreach ((array) $flex["dynamicComponents"] as $link) {
+          $linkedPostIds = array();
+          $itm = $this->parseFlexFormLink($link["links"]["link"], null, $linkedPostIds);
+          //$this->log($itm, false);
+          unset($itm["href"]);
+          $itm["pageuid"] = $linkedPostIds["linkedPosts"][0];
+          $items[] = $itm;
+        }
+        $menus[] = array(
+          'headline' => $flex['headline'],
+          'menu_id' => $flex['mid'],
+          'items' => $items
+        );
+      }
+      Mongoer::sendRequest("menues", "save", array("data" => $menus));
+    }
+
+    if ($post['backend_layout'] == 'pagets__21') {
+      $topthemen = array();
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+      foreach ($fetchedTTContent as $row) {
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $topthemen[] = array(
+          "key" => $flex['key'],
+          "starttime" => $this->startOfDay($flex['starttime']),
+          "endtime" => $this->endOfDay($flex['starttime'], '+13 days'),
+          "section1" => (int) $this->parseUIDFromT3Url($flex['section1']),
+          "section2" => (int) $this->parseUIDFromT3Url($flex['section2']),
+          "section3" => (int) $this->parseUIDFromT3Url($flex['section3']),
+          "section4" => (int) $this->parseUIDFromT3Url($flex['section4']),
+          "section5" => (int) $this->parseUIDFromT3Url($flex['section5']),
+        );
+      }
+      Mongoer::sendRequest("topthemen", "save", array("data" => $topthemen));
+    }
+
+    if ($post['backend_layout'] == 'pagets__23') {
+      $maintenance = array();
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+
+      foreach ($fetchedTTContent as $row) {
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+        $maintenance[] = array(
+          "starttime" => $flex['starttime'],
+          "endtime" => $flex['endtime'],
+          "infotext" => $flex['infotext']
+        );
+      }
+      Mongoer::sendRequest("maintenance", "save", array("data" => $maintenance));
+    }
+
+    if ($post['backend_layout'] == 'pagets__27' || $post['backend_layout' == 'pagets__28']) {
+
+      $chatbot = array();
+      $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+
+      foreach ($fetchedTTContent as $row) {
+
+        $isDirect = $row['CType'] == 'mrm_be_cm_chatbot-direct';
+
+        $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']);
+
+        $item = array();
+
+        $item['terms'] = explode("\n", str_replace(',', '', $flex['settings']['terms']));
+        $item['type'] = $isDirect ? 'direct' : $flex['settings']['type'];
+
+        if ($isDirect) {
+          $item['url'] = $this->replaceT3Link($flex['settings']['url'], null, $row, false);
+        }
+        if ($flex['settings']['type'] == 'reverse') {
+          $item["category"] =  (($flex['settings']['category'] == "Auswählen") ? '' : $flex['settings']['category']);
+        }
+
+        $chatbot[] = $item;
+      }
+      Mongoer::sendRequest("chatbot", "save",  array("data" => $chatbot));
+    }
+  }
+
+  private function removeLinebreaks($str)
+  {
+    return trim(preg_replace('/\s+/', ' ', $str));
+  }
+
+  private function exchangeLinkBreaksWithBr($str)
+  {
+    return trim(preg_replace('/\r\n/', '<br />', $str));
+  }
+
+  private function startOfDay($ts, $modify = null, $isAtomDate = false, $returnAtomDate = false)
+  {
+    $dt = null;
+    if ($isAtomDate) {
+      if (is_numeric($ts)) {
+        $ts = $ts + 0;
+        $dt = new \DateTime();
+        $dt->setTimezone(new \DateTimeZone('UTC'));
+        $dt->setTimestamp($ts);
+      } else {
+        $dt = new \DateTime($ts);
+        $dt->setTimezone(new \DateTimeZone('UTC'));
+      }
+    } else {
+      $dt = new \DateTime(null, new \DateTimeZone('Europe/Berlin'));
+      $dt->setTimestamp($ts);
+    }
+
+    if ($modify) $dt->modify($modify);
+    $bodStr = $dt->format('Y-m-d 00:00:00');
+
+    $bodObj = \DateTime::createFromFormat('Y-m-d H:i:s', $bodStr, $returnAtomDate ? new \DateTimeZone('UTC') : new \DateTimeZone('Europe/Berlin'));
+
+    if ($returnAtomDate) return $bodObj->format(\DateTimeInterface::ATOM);
+
+    return (int) $bodObj->getTimestamp();
+  }
+
+  private function endOfDay($ts, $modify = null, $isAtomDate = false, $returnAtomDate = false)
+  {
+    $dt = null;
+    if ($isAtomDate) {
+      if (is_numeric($ts)) {
+        $ts = $ts + 0;
+        $dt = new \DateTime();
+        $dt->setTimezone(new \DateTimeZone('UTC'));
+        $dt->setTimestamp($ts);
+      } else {
+        $dt = new \DateTime($ts);
+        $dt->setTimezone(new \DateTimeZone('UTC'));
+      }
+    } else {
+      $dt = new \DateTime(null, new \DateTimeZone('Europe/Berlin'));
+      $dt->setTimestamp($ts);
+    }
+
+    if ($modify) $dt->modify($modify);
+    $eodStr = $dt->format('Y-m-d 23:59:59');
+    $eodObj = \DateTime::createFromFormat('Y-m-d H:i:s', $eodStr, $returnAtomDate ? new \DateTimeZone('UTC') : new \DateTimeZone('Europe/Berlin'));
+
+    if ($returnAtomDate) return $eodObj->format(\DateTimeInterface::ATOM);
+
+    return (int) $eodObj->getTimestamp();
+  }
+
+  function array_search_by_key_recursive($needle, array $haystack, &$return)
+  {
+    foreach ($haystack as $k => $v) {
+      if (is_array($v)) {
+        $this->array_search_by_key_recursive($needle, $v, $return);
+      } else {
+        if ($k === $needle) {
+          $return[] = $v;
+        }
+      }
+    }
+  }
+
+  private function findFirstAppearingElementByType($type, $subs, $typeKey = "type")
+  {
+    foreach ($subs as $v) {
+      if ($v[$typeKey] == $type) return $v;
+    }
+    return null;
+  }
+
+  private function checkOrReduceDescriptionLength($desc, $len)
+  {
+    $newStr = '';
+
+    $desc = $this->removeLinebreaks($desc);
+    if (is_string($desc) && mb_strlen($desc) < $len) {
+      $newStr = $desc;
+    } else {
+      $newStr = substr($desc, 0, $len);
+      $pos = strrpos($newStr, ' ');
+      $newStr =  substr($desc, 0, $pos);
+    }
+    return $newStr;
+  }
+
+  private function constructMetaDescription($abstract = '', $content, $isOgTag = false)
+  {
+    $desc = '';
+    if ($abstract != '') $desc = $abstract;
+
+    if (!$desc || $desc == '') {
+      $desc = $this->findFirstAppearingElementByType("introtext", $content["subElements"]);
+      if ($desc)
+        $desc = $desc["attributes"]["text"];
+    }
+    if (!$desc || $desc == '')
+      return '';
+
+    if ($isOgTag)
+      return "<meta property=\"og:description\" content=\"" . $this->checkOrReduceDescriptionLength($desc, 320) . "\">";
+
+    return "<meta name=\"description\" content=\"" . $this->checkOrReduceDescriptionLength($desc, 320) . "\">";
+  }
+
+  private function constructMetaDescriptionForBlogPage($text = '', $content, $isOgTag = false)
+  {
+    $desc = '';
+
+    if ($text != '') $desc = $text;
+
+    if (!$desc || $desc == '') {
+      $desc = $this->findFirstAppearingElementByType('typo3_paragraph', $content["subElements"]);
+
+      if ($desc)
+        $desc = strip_tags($desc["attributes"]["text"]);
+    }
+
+    if (!$desc || $desc == '')
+      return '';
+
+    if ($isOgTag)
+
+      return "<meta property=\"og:description\" content=\"" . $this->checkOrReduceDescriptionLength($desc, 165) . ' …' . "\">";
+
+    return "<meta name=\"description\" content=\"" . $this->checkOrReduceDescriptionLength($desc, 165) . ' …' . "\">";
+  }
+
+  private function constructSearchableText($content, $minimum = true)
+  {
+    $cr = [];
+    if (!$minimum) {
+      $this->array_search_by_key_recursive("text", $content["pageData"]["content"], $cr);
+    } else {
+      //$roof = $this->findFirstAppearingElementByType("roof", $content["pageData"]["content"]["subElements"]);
+      //if($roof) $cr[] = $roof["attributes"]["text"];
+      $h1 = $this->findFirstAppearingElementByType("h1", $content["pageData"]["content"]["subElements"]);
+      if ($h1) {
+        $cr[] = $h1["attributes"]["roof"];
+        $cr[] = $h1["attributes"]["text"];
+      }
+      $introtext = $this->findFirstAppearingElementByType("introtext", $content["pageData"]["content"]["subElements"]);
+      if ($introtext) $cr[] = $introtext["attributes"]["text"];
+    }
+    $cr = preg_replace("/\r|\n/", " ", strip_tags(implode(" ", $cr)));
+    return $cr;
+  }
+
+  private function constructStatus($post)
+  {
+    $publicationType = null;
+    switch ($post["red_status"]) {
+      case "-1": //neu angelegt
+      case "1": //in Bearbeitung
+      case "2": //vorbereitet
+      case "3": //geprüft
+      case "21": //gesperrt
+      case "22": //archiviert
+        $publicationType = "preview";
+        break;
+      case "11": //frei
+      case "12": //online
+        $publicationType = "live";
+        break;
+      default:
+        break;
+    }
+
+    $status = array(
+      'isLiveFrom' => -1,
+      'isLiveTill' => -1,
+      'publicationType' => $publicationType,
+      'orderStatus' => $post['orderStatus'],
+      'date-updated' => ($post['orderStatus'] === 'neu') ? $post['starttime'] : (($post['orderStatus'] === 'aktualisiert') ? $post['red_end'] : ''),
+      'seo' => array(
+        'sitemap_changefreq' => $post['sitemap_changefreq'],
+        'sitemap_priority' => $post['sitemap_priority'],
+        'sitemap_lastmod' => time(),
+      ),
+    );
+
+    if ($post['starttime'] != 0) {
+      $status['isLiveFrom'] = $this->startOfDay($post['starttime']);
+    }
+    if ($post['endtime'] != 0) {
+      $status['isLiveTill'] = $this->endOfDay($post['endtime']);
+    }
+
+    if ($post['doktype'] == '101') {
+      $status['blog_author'] = $post['blog_author'];
+      $status['blog_category'] = $post['blog_category'];
+    }
+
+    if ($post['doktype'] == '100') {
+      $status['event_state'] = $post['event_state'];
+      $status['event_category'] = $post['event_category'];
+    }
+
+    if ($post['doktype'] == '104') {
+      $status['video_category'] = $post['event_category'];
+    }
+    //$this->log($status, false);
+    return $status;
+  }
+
+  private function constructRedirects($pageData)
+  {
+    $redirects = array(
+      '/?id=' . $pageData['uid']
+    );
+    //TODO: Add a single \r to match old Macs line breaks?
+    foreach (preg_split('/\n|\r\n?/', $pageData['redirects']) as $redir) {
+      $redir = trim($redir);
+      if ($redir == '') continue;
+      $redirects[] = $redir;
+    }
+    return $redirects;
+  }
+
+  private function convertStringToTechnicalName($string)
+  {
+    $string = $this->sanitizeString($string);
+    $string = preg_replace('/-/', '', $string);
+    return strtoupper($string);
+  }
+
+  private function sanitizeString($string)
+  {
+    $table = array(
+      'Š' => 'S', 'š' => 's', 'Đ' => 'Dj', 'đ' => 'dj', 'Ž' => 'Z', 'ž' => 'z', 'Č' => 'C', 'č' => 'c', 'Ć' => 'C', 'ć' => 'c',
+      'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'AE', 'Å' => 'A', 'Æ' => 'A', 'Ç' => 'C', 'È' => 'E', 'É' => 'E',
+      'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O',
+      'Õ' => 'O', 'Ö' => 'OE', 'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'UE', 'Ý' => 'Y', 'Þ' => 'B', 'ß' => 'Ss',
+      'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'ae', 'å' => 'a', 'æ' => 'a', 'ç' => 'c', 'è' => 'e', 'é' => 'e',
+      'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ð' => 'o', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o',
+      'ô' => 'o', 'õ' => 'o', 'ö' => 'oe', 'ø' => 'o', 'ü' => 'ue', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ý' => 'y', 'ý' => 'y',
+      'þ' => 'b', 'ÿ' => 'y', 'Ŕ' => 'R', 'ŕ' => 'r', '/' => ''
+    );
+
+    $x = preg_replace(array('/\s{2,}/', '/[\t\n]/'), ' ', $string);
+    $x = trim(strtr($x, $table));
+    $x = preg_replace('/[^A-Za-z0-9]+/', ' ', $x);
+    $x = trim($x);
+    $x = preg_replace('/ {1,}/', '-', $x);
+    $x = trim($x, "-");
+    return $x;
+  }
+
+  private function constructSlug($pid)
+  {
+    $postStatement = $this->pageQueryBuilder
+      ->select('slug')
+      ->from('pages')
+      ->setMaxResults(1)
+      ->where(
+        $this->pageQueryBuilder->expr()->eq('uid', $this->pageQueryBuilder->createNamedParameter($pid))
+      )
+      ->execute();
+
+    $postSlug = $postStatement->fetchAll();
+    $postSlug = $postSlug[0];
+    return $postSlug ? $postSlug["slug"] : null;
+  }
+
+  private function constructBreadCrumb($rootline, $page, $pageType)
+  {
+    $breadCrumb = $this->createContentElement('breadcrumbs');
+    foreach ($rootline as $post) {
+      if ($post['doktype'] == 254) continue;
+      if ($post['is_siteroot'] == 1) continue;
+      if ($page['uid'] == $post['uid'] && ($pageType == "blogger-page" || $pageType == "video-page"))
+        $tit = $post['title'];
+      else
+        if ($post['use_roof_as_breadcrumb_text'] == 0)
+        $tit = $post['title'];
+      else
+        $tit = $post['roof'] && $post['roof'] != '' ? $post['roof'] : $post['title'];
+      $breadCrumb['subElements'][] = $this->createContentElement(
+        'breadcrumblink',
+        array(
+          'title' => $tit,
+          'alt' => $tit,
+          'text' => $tit,
+          'href' => $this->constructSlug($post['uid'])
+        )
+      );
+    }
+    return $breadCrumb;
+  }
+
+  private function processData($dbReference, &$processedData, &$processedImages)
+  {
+    $isSidebar = $dbReference['colPos'] == 1;
+    if ($isSidebar)
+      $subs = &$processedData['pageData']['sidebar']['subElements'];
+    else
+      $subs = &$processedData['pageData']['content']['subElements'];
+
+    $ffs = GeneralUtility::makeInstance(FlexFormService::class);
+    $flex = $ffs->convertFlexFormContentToArray($dbReference['pi_flexform']);
+
+    // print_r($flex);
+    // die();
+
+    switch ($dbReference['CType']) {
+      case "mrm_be_cm_postimage":
+        break;
+      case "mrm_be_cm_voting":
+        $s = $this->createContentElement(
+          "voting",
+          array(
+            "labels" => array(
+              "startbutton" => $flex["startbuttontext"],
+            ),
+            "resultscreen" => array(
+              "headingTop" => $flex["resultheadingtop"],
+            ),
+          ),
+          array(
+            "items" => array(array(
+              "text" => $flex["questiontext"],
+              "type" => $flex["questiontype"] == "1" || $flex["questiontype"] == 1 ? "multi" : "single",
+              "answers" => array_values(array_map(function ($x) {
+                return array("text" => $x["settings"]["answer"]["text"], "value" => null);
+              }, $flex["dynamicComponents"]))
+            )),
+            "validation" => array(
+              "alreadyVoted" => $this->createContentElement("injection", array("type" => "voting-alreadyVoted")),
+              "chartData" => $this->createContentElement("injection", array("type" => "voting-chartData|")),
+            ),
+          )
+        );
+        $cntr = 0;
+        foreach ($s["attributes"]["items"][0]["answers"] as &$a) {
+          $a["value"] = $cntr;
+          $cntr++;
+        }
+        $s["attributes"]["validation"]["chartData"]["props"]["type"] .= $cntr;
+        $processedData["injections"][] = "voting-alreadyVoted";
+        $processedData["injections"][] = "voting-chartData|" . $cntr;
+        $subs[] = $s;
+        $processedData["status"]["hasVoting"] = true;
+        break;
+      case "mrm_be_cm_checklist-todo":
+        $elements = $this->createContentElement(
+          "checklist-todo",
+          array(
+            "headlines" => array(
+              "main" => $flex["headline_main"],
+              "done" => $flex["headline_done"],
+              "not_done" => $flex["headline_not_done"],
+            ),
+            "controls" => array(
+              "print" => $flex["enable_print"] == "1",
+              "pdf" => $flex["enable_pdf"] == "1",
+            ),
+            "labels" => array(
+              "submit" => $flex["label_submit"],
+              "print" => $flex["label_print"],
+              "pdf" => $flex["label_pdf"],
+            ),
+            "items" => (function ($flex, $dbReference) {
+              $itms = array();
+              $imgs = array();
+              if ($flex["images"] != "0" && $flex["images"] != 0) {
+                $imgs = $this->processImagesTTContent($dbReference, 'mrm_be_cm_contentimage', 'tt_content', 'image', 'uid', true, true);
+              }
+              foreach ($flex["items"] as $itm) {
+                $i = $itm["item"];
+                $a = array();
+                if ($i["text"] != "") $a["text"] = $i["text"];
+                if ($i["contains_image"] == "1" || $i["contains_image"] == 1) {
+                  $im = array_shift($imgs);
+                  if (isset($im)) $a["img"] = $im;
+                }
+                $itms[] = $a;
+              }
+              return $itms;
+            })($flex, $dbReference),
+          )
+        );
+        $subs[] = $elements;
+        $processedData["status"]["hasChecklist"] = true;
+        break;
+      case "mrm_be_cm_checklist_todo_multi":
+        $elements = $this->createContentElement(
+          'checklist-todo-multi',
+          array(
+            "texts" => array(
+              "mainhead" => $flex['mainhead'],
+              "description" =>  $flex['description'],
+            ),
+            "controls" => array(
+              "print" => $flex["enable_print"] == "1",
+              "pdf" => $flex["enable_pdf"] == "1",
+            ),
+            "labels" => array(
+
+              "print" => $flex["label_print"],
+              "pdf" => $flex["label_pdf"],
+            ),
+            "items" => (function ($flex) {
+              $itms  = [];
+              $a = array();
+              foreach ($flex['items'] as $itm) {
+
+                if (is_array($itm)) {
+                  $a['head'] = $itm['item']['head'];
+                  $list = $itm['item']['list'];
+
+                  $doc = new \DOMDocument('1.0', 'utf-8');
+                  $doc->loadHTML('<?xml encoding="UTF-8">' . $list);
+                  $listitems = $doc->getElementsByTagName('li');
+
+                  $list = [];
+                  foreach ($listitems as $node) {
+                    foreach ($node->childNodes as $child) {
+                      $list[] = array('text' => $child->nodeValue);
+                    }
+                    $a['items'] = $list;
+                  }
+                }
+                $itms[] = $a;
+              }
+              return $itms;
+            })($flex),
+          ),
+        );
+        $subs[] = $elements;
+        break;
+
+      case "mrm_be_cm_checklist-input":
+        $items = array();
+        $dynContentCounter = 0;
+        while (true) {
+          $dynContentCounter++;
+          if (!isset($flex["label" . $dynContentCounter])) break;
+          if ($flex["label" . $dynContentCounter] === "") continue;
+          $label = array(
+            "label" => $flex["label" . $dynContentCounter]
+          );
+          $items[] = $label;
+        }
+        $elements = $this->createContentElement(
+          "checklist-input",
+          array(
+            "headlines" => array(
+              "main" => $flex["headline_main"],
+              "results" => $flex["headline_result"],
+            ),
+            "intro" => $flex["intro"],
+            "controls" => array(
+              "print" => $flex["enable_print"] == "1",
+              "pdf" => $flex["enable_pdf"] == "1",
+            ),
+            "labels" => array(
+              "submit" => $flex["label_submit"],
+              "print" => $flex["label_print"],
+              "pdf" => $flex["label_pdf"],
+            ),
+            "items" => $items,
+          )
+        );
+        $subs[] = $elements;
+        $processedData["status"]["hasChecklist"] = true;
+        break;
+      case "mrm_be_cm_checklist-scale":
+        $items = array();
+        $dynContentCounter = 0;
+        while (true) {
+          $dynContentCounter++;
+          if (!isset($flex["label" . $dynContentCounter])) break;
+          if ($flex["label" . $dynContentCounter] === "") continue;
+          $label = array(
+            "label" => $flex["label" . $dynContentCounter]
+          );
+          $items[] = $label;
+        }
+        $elements = $this->createContentElement(
+          "checklist-scale",
+          array(
+            "headlines" => array(
+              "main" => $flex["headline_main"],
+              "results" => $flex["headline_result"],
+            ),
+            "intro" => $flex["intro"],
+            "maxPoints" => (int)$flex["maxpoints"],
+            "controls" => array(
+              "print" => $flex["enable_print"] == "1",
+              "pdf" => $flex["enable_pdf"] == "1",
+            ),
+            "labels" => array(
+              "nextbutton" => $flex["label_nextbutton"],
+              "lastbutton" => $flex["label_lastbutton"],
+              "print" => $flex["label_print"],
+              "pdf" => $flex["label_pdf"],
+            ),
+            "items" => $items,
+          )
+        );
+        $subs[] = $elements;
+        $processedData["status"]["hasChecklist"] = true;
+        break;
+      case "mrm_be_cm_checklist-radiorange":
+        $items = array();
+        $dynContentCounter = 0;
+        while (true) {
+          $dynContentCounter++;
+          if (!isset($flex["pointsFrom" . $dynContentCounter])) break;
+          if ($flex["pointsFrom" . $dynContentCounter] === "") continue;
+          $item = array(
+            "pointsFrom" => (int)$flex["pointsFrom" . $dynContentCounter],
+            "pointsTo" => (int)$flex["pointsTo" . $dynContentCounter],
+            "validationText" => $flex["validationText" . $dynContentCounter]
+          );
+          if ($flex["image" . $dynContentCounter] == 1) {
+            $images = $this->processImagesTTContent($dbReference, 'mrm_be_cm_checklist-radiorange', 'tt_content', 'flex_image_' . $dynContentCounter, 'uid', false, true);
+            $images = $images[0];
+            $images["src"] = $images["sources"]["img"];
+            unset($images["sources"]);
+            $item["img"] = $images;
+          }
+          $items[] = $item;
+        }
+        $elements = $this->createContentElement(
+          "checklist-radiorange",
+          array(
+            "headlines" => array(
+              "main" => $flex["headline_main"],
+            ),
+            "intro" => $flex["intro"],
+            "validation" => array(
+              "maxPoints" => (int)$flex["maxpoints"],
+              "items" => $items,
+            )
+          )
+        );
+        $subs[] = $elements;
+        $processedData["status"]["hasChecklist"] = true;
+        break;
+      case "mrm_be_cm_checklist-yesmaybeno":
+        $items = array();
+        foreach ($flex["dynamicComponents"] as $component) {
+          foreach ($component as $key => $value) {
+            $item = array(
+              "heading" => $value["headline"],
+              "text" => $value["text"]
+            );
+          }
+          if ($item) {
+            $items[] = $item;
+          }
+          unset($value);
+        }
+        $choices = array();
+        $choice_yes = array(
+          "label" => $flex["choice_value_yes"],
+          "value" => "yes"
+        );
+        $choice_maybe = array(
+          "label" => $flex["choice_value_maybe"],
+          "value" => "maybe"
+        );
+        $choice_no = array(
+          "label" => $flex["choice_value_no"],
+          "value" => "no"
+        );
+        $choices[] = $choice_yes;
+        $choices[] = $choice_maybe;
+        $choices[] = $choice_no;
+        $elements = $this->createContentElement(
+          "checklist-yesmaybeno",
+          array(
+            "headlines" => array(
+              "main" => $flex["headline_main"],
+              "results" => $flex["headline_result"],
+            ),
+            "intro" => $flex["intro"],
+            "controls" => array(
+              "print" => $flex["enable_print"] == "1",
+              "pdf" => $flex["enable_pdf"] == "1",
+            ),
+            "labels" => array(
+              "nextbutton" => $flex["label_nextbutton"],
+              "lastbutton" => $flex["label_lastbutton"],
+              "print" => $flex["label_print"],
+              "pdf" => $flex["label_pdf"],
+            ),
+            "choices" => $choices,
+            "items" => $items,
+          )
+        );
+        $subs[] = $elements;
+        $processedData["status"]["hasChecklist"] = true;
+        break;
+      case "mrm_be_cm_picturechoice":
+        $s = $this->createContentElement(
+          "picturechoice",
+          array(
+            "labels" => array(
+              "startbutton" => $flex["startbuttontext"],
+              "nextbutton" => $flex["nextbuttontext"],
+              "lastbutton" => $flex["lastbuttontext"],
+              "question" => $flex["question"],
+              "repeatbutton" => $flex["repeatbuttontext"],
+            ),
+            "resultscreen" => array(
+              "headingTop" => $flex["resultheadingtop"],
+              "end" => $flex["thanks"]
+            ),
+            "isRestartAble" => $flex["isRestartAble"] == 1 || $flex["isRestartAble"] == "1",
+          ),
+          array(
+            "items" => (function ($flex, $dbReference) {
+              $ret = array();
+              for ($i = 1; $i <= 3; $i++) {
+                $item = array();
+                for ($j = 1; $j <= 5; $j++) {
+                  if ($flex["image" . $i . "_" . $j] == "1") {
+                    $img = $this->processImagesTTContent($dbReference, 'mrm_be_cm_picturechoice', 'tt_content', 'flex_image_' . $i . "_" . $j, 'uid', false, true);
+                    $img = $img[0];
+                    $item[] = array(
+                      "image" => $img,
+                      "points" => (int) $flex["pointsOfImage" . $i . "_" . $j]
+                    );
+                  }
+                }
+                if (sizeof($item) > 0)
+                  $ret[] = $item;
+              }
+              return $ret;
+            })($flex, $dbReference),
+            "validation" => array(
+              "maxPoints" => (int)$flex["maxpoints"],
+              "alreadyReachedPoints" => $this->createContentElement("injection", array("type" => "picturechoice-alreadyReachedPoints")),
+              "items" => array_map(
+                function ($i) {
+                  $i["validationText"] = $this->checkTextForInternalLinks($i["validationText"], $dbReference, $processedData);
+                  $i["pointsFrom"] = (int)$i["pointsFrom"];
+                  $i["pointsTo"] = (int)$i["pointsTo"];
+                  return $i;
+                },
+                array_filter(array_values(array_map(function ($v) {
+                  return $v['settings']['validation'];
+                }, $flex["validations"])), function ($x) {
+                  return $x != null;
+                })
+                //TODO: Core: Error handler (BE): PHP Warning: array_filter() expects parameter 1 (or 2 in another error message) to be array, null given in /var/www/html/typo3conf/ext/mrm_be/Classes/Hooks/TCE/TCEMainHook.php line 830
+              ),
+            ),
+          )
+        );
+        $processedData["injections"][] = "picturechoice-alreadyReachedPoints";
+        $subs[] = $s;
+        $processedData["status"]["hasPicturechoice"] = true;
+        break;
+      case "mrm_be_cm_quiz":
+        $s = $this->createContentElement(
+          "quiz",
+          array(
+            "labels" => array(
+              "startbutton" => $flex["startbuttontext"],
+              "nextbutton" => $flex["nextbuttontext"],
+              "lastbutton" => $flex["lastbuttontext"],
+              "question" => $flex["question"],
+              "repeatbutton" => $flex["repeatbuttontext"],
+            ),
+            "resultscreen" => array(
+              "headingTop" => $flex["resultheadingtop"],
+              "headingSub" => $flex["resultheadingsub"],
+              "validation" => $flex["validationstr"],
+              "end" => $flex["thanks"]
+            ),
+            "isRestartAble" => $flex["isRestartAble"] == 1 || $flex["isRestartAble"] == "1",
+          ),
+          array(
+            "items" => array_values(array_map(function ($v) {
+              $questionType = null;
+              $quest = $v['settings']['question'];
+              if (!isset($quest)) {
+                $quest = $v['settings']['question_multi'];
+                $questionType = "multi";
+              }
+              if (isset($quest["additional_text"]) && $quest["additional_text"] != "") {
+                $quest["text"] = $quest["text"] . " (" . $quest["additional_text"] . ")";
+                unset($quest["additional_text"]);
+              }
+              if ($questionType) $quest["type"] = $questionType;
+              unset($quest["rightanswer"]);
+              $i = 0;
+              $quest["answers"] = array();
+              while (1) {
+                $i++;
+                if (!isset($quest["answertext" . $i])) break;
+                if ($quest["answertext" . $i] === "") continue;
+                $quest["answers"][] = array("text" => $quest["answertext" . $i],  "points" => (int)$quest["answerpoints" . $i]);
+                unset($quest["answertext" . $i]);
+                unset($quest["answerpoints" . $i]);
+              }
+              /* NOTE: DEPRECATED BY SINGLE INPUTS
+              $quest["answers"] = array_map(function($x) {
+                $x = explode("|", $x);
+                $x = array("text" => $x[0], "points" => (int)$x[1]);
+                return $x;
+              }, explode("\n", $quest["answers"]));
+              */
+              return $quest;
+            }, $flex["dynamicComponents"])),
+            "validation" => array(
+              "maxPoints" => (int)$flex["maxpoints"],
+              "averagePoints" => $this->createContentElement("injection", array("type" => "quiz-averagePoints")),
+              "alreadyReachedPoints" => $this->createContentElement("injection", array("type" => "quiz-alreadyReachedPoints")),
+              "items" => array_map(
+                function ($i) {
+                  $i["validationText"] = $this->checkTextForInternalLinks($i["validationText"], $dbReference, $processedData);
+                  return $i;
+                },
+                array_filter(array_values(array_map(function ($v) {
+                  return $v['settings']['validation'];
+                }, $flex["dynamicComponents2"])), function ($x) {
+                  return $x != null;
+                })
+              ),
+            ),
+          )
+        );
+        $processedData["injections"][] = "quiz-averagePoints";
+        $processedData["injections"][] = "quiz-alreadyReachedPoints";
+        $subs[] = $s;
+        $processedData["status"]["hasQuiz"] = true;
+        break;
+      case "mrm_be_cm_animation":
+        $script = $flex["script"];
+        if ($flex["staticfiles"] != "0" && $flex["staticfiles"] != 0) {
+          $imgs = $this->processImagesTTContent($dbReference);
+          foreach ($imgs as $idx => $v) {
+            $script = implode("#cdnurl#/" . $v["sources"]["passthru"], explode("%ASSET_" . ($idx + 1) . "%", $script));
+          }
+        }
+        $subs[] = $this->createContentElement("animation", array("addJQuery" => $flex["addJQuery"] == 1 || $flex["addJQuery"] == "1"), array("script" => $script));
+        $processedData["status"]["hasAnimation"] = true;
+        break;
+      case "mrm_be_cm_injection":
+        $subs[] = $this->createContentElement("injection", array("type" => $flex["text"]));
+        $processedData["injections"][] = $flex["text"];
+        break;
+      case "mrm_be_cm_roof":
+        $subs[] = $this->createContentElement("roof", array(), array("text" => $flex["text"]));
+        break;
+      case "mrm_be_cm_h1":
+        $subs[] = $this->createContentElement("h1", array(), array("text" => $flex["text"]));
+        break;
+      case "mrm_be_cm_h2":
+        $subs[] = $this->createContentElement("h2", array(), array("text" => $flex["text"]));
+        break;
+      case "mrm_be_cm_h3":
+        $subs[] = $this->createContentElement("h3", array(), array("text" => $flex["text"]));
+        break;
+      case "mrm_be_cm_introtext":
+        $text = preg_replace("/\n/", "<br />", $flex["text"]);
+        $subs[] = $this->createContentElement("introtext", array(), array("text" => $text));
+        break;
+      case "mrm_be_cm_button":
+        $href = $this->parseFlexFormLink($flex["button"], $dbReference, $processedData);
+        $buttonType = ($flex['buttonType'] == "0") ? 'button-link' : 'button-scream';
+        $button = $this->createContentElement("button", array('buttonType' => $buttonType), array("text" => $flex["text"], "href" => $href["href"], "target" => $href["target"]));
+        $subs[] = $button;
+        break;
+      case "mrm_be_cm_html":
+        $subs[] = $this->createContentElement("html", array(), array("text" => $flex["html"]));
+        break;
+      case "mrm_be_cm_heroimage":
+        $props = $this->processImagesTTContent($dbReference)[0];
+        $props["type"] = "typo3_hero";
+        $subs[] = $this->createContentElement("image", $props);
+        break;
+      case "mrm_be_cm_contentimage":
+        $props = $this->processImagesTTContent($dbReference)[0];
+        $props["type"] = "typo3_content";
+        $subs[] = $this->createContentElement("image", $props);
+        break;
+      case "mrm_be_cm_publication":
+        $imgprops = $this->processImagesTTContent($dbReference, 'mrm_be_cm_publication')[0];
+        $imgprops["type"] = "typo3_publication";
+        $publication = $this->createContentElement(
+          "publication",
+          array(
+            "starttime" => $this->startOfDay($flex['starttime']),
+            "endtime" => $this->endOfDay($flex['endtime']),
+            "issuekey" => $flex['issuekey'],
+          ),
+          array(
+            "image" => $imgprops,
+            "number" => $flex["issuenumber"],
+            "title" => $flex["issuetitle"],
+            "headline" => $flex["issueheadline"],
+            "link" => $this->parseFlexFormLink($flex["htmllink"], $dbReference, $processedData),
+            "pdf" => $this->parseFlexFormLink($flex["pdflink"], $dbReference, $processedData),
+          )
+        );
+        $subs[] = $publication;
+        break;
+      case "mrm_be_cm_rawimage":
+        $props = $this->processImagesTTContent($dbReference)[0];
+        $props["type"] = "typo3_raw";
+        $subs[] = $this->createContentElement("image", $props);
+        break;
+      case "mrm_be_cm_movingimagesvideo":
+        $subs[] = $this->createContentElement(
+          "movingimagesvideo",
+          array(
+            "hasNoticeForCrossPromotion" => $flex["hasNoticeForCrossPromotion"] == 1,
+            "hasNoticeForAccessibility" => $flex["hasNoticeForAccessibility"] == 1
+          ),
+          array("vid" => $flex["vid"])
+        );
+        break;
+      case "mrm_be_cm_paragraph":
+        $elements = $this->checkText($flex["text"], $dbReference, $processedData, "typo3_paragraph");
+        $subs = array_merge($subs, $elements);
+        break;
+      case "mrm_be_cm_additionalinfobox":
+      case "mrm_be_cm_infobox":
+      case "mrm_be_cm_extra_infosbox":
+
+        $type = null;
+        $open = null;
+        $noAutoOpen = null;
+        if ($dbReference['CType'] == "mrm_be_cm_additionalinfobox") $type = "typo3_additionalinfobox";
+        elseif ($dbReference['CType'] == "mrm_be_cm_infobox") $type = "typo3_infobox";
+        else $type = "typo3_extrainfosbox";
+
+        if ($dbReference['CType'] == "mrm_be_cm_additionalinfobox" || $dbReference['CType'] == "mrm_me_cm_extra_infosbox") $open = true;
+        else $open = $flex["isInitialyOpen"] == "1";
+
+        if ($dbReference['CType'] == "mrm_be_cm_additionalinfobox" || $dbReference['CType'] == "mrm_be_cm_infobox") $headline = $flex["headline"];
+        elseif ($dbReference['CType'] == "mrm_be_cm_extra_infosbox") $headline = '';
+        $this->log('Headline: ' . $headline, true);
+
+        $sub = $this->createContentElement(
+          $type,
+          array("open" => $open, "noAutoOpen" => $flex["noAutoOpen"] == 1),
+          array("headline" => $flex["headline"])
+        );
+
+        if ($flex["image"] == "1") {
+          $props = $this->processImagesTTContent($dbReference, "mrm_be_cm_contentimage")[0];
+          $props["type"] = "typo3_content";
+          $sub["subElements"][] = $this->createContentElement("image", $props);
+        } else {
+          switch ($flex["icon"]) {
+            case "1":
+              $sub["attributes"]["icon"] = "stadtinfo_basics";
+              break;
+            case "2":
+              $sub["attributes"]["icon"] = "geschichte";
+              break;
+            case "3":
+              $sub["attributes"]["icon"] = "kultur_freizeit";
+              break;
+            case "4":
+              $sub["attributes"]["icon"] = "besonderheiten";
+              break;
+            case "5":
+              $sub["attributes"]["icon"] = "kosten_geld";
+              break;
+            case "6":
+              $sub["attributes"]["icon"] = "hochschulen";
+              break;
+            case "7":
+              $sub["attributes"]["icon"] = "studieren";
+              break;
+          }
+        }
+
+        if ($flex["dynamicComponents"] && sizeof($flex["dynamicComponents"]) > 0)
+          foreach ($flex["dynamicComponents"] as $comp) {
+            $stype = array_keys($comp['settings'])[0];
+            $elements = [];
+            switch ($stype) {
+              case "box":
+                $box = $this->createContentElement("boxwrapper");
+                $box["subElements"] = array_merge($box["subElements"], $this->checkText($comp['settings']['box']['boxheadline'], $dbReference, $processedData, "h3"));
+                $box["subElements"] = array_merge($box["subElements"], $this->checkText($comp['settings']['box']['boxtext'], $dbReference, $processedData, "typo3_paragraph"));
+                $elements = [$box];
+                break;
+              case "boxheadline":
+                $elements = $this->checkText($comp['settings'][$stype][$stype], $dbReference, $processedData, "h3");
+                //$this->log($elements, false);
+                break;
+              case "boxtext":
+                $elements = $this->checkText($comp['settings'][$stype][$stype], $dbReference, $processedData, "typo3_paragraph");
+                break;
+              case "html":
+                $elements = $this->checkText($comp['settings'][$stype][$stype], $dbReference, $processedData, "html");
+                break;
+            }
+            $sub["subElements"] = array_merge($sub["subElements"], $elements);
+            $this->log($sub["subElements"], false);
+          }
+        $subs[] = $sub;
+        break;
+      case "mrm_be_cm_foldout":
+        $sub = $this->createContentElement("typo3_foldout", array("open" => $flex["isInitialyOpen"] == "1", "noAutoOpen" => $flex["noAutoOpen"] == "1"), array("headline" => $flex["headline"]), array());
+
+        if ($flex["image"] == "1") {
+          $props = $this->processImagesTTContent($dbReference, "mrm_be_cm_contentimage")[0];
+          $props["type"] = "typo3_content";
+          $sub["subElements"][] = $this->createContentElement("image", $props);
+        } else {
+          switch ($flex["icon"]) {
+            case "1":
+              $sub["attributes"]["icon"] = "stadtinfo_basics";
+              break;
+            case "2":
+              $sub["attributes"]["icon"] = "geschichte";
+              break;
+            case "3":
+              $sub["attributes"]["icon"] = "kultur_freizeit";
+              break;
+            case "4":
+              $sub["attributes"]["icon"] = "besonderheiten";
+              break;
+            case "5":
+              $sub["attributes"]["icon"] = "kosten_geld";
+              break;
+            case "6":
+              $sub["attributes"]["icon"] = "hochschulen";
+              break;
+            case "7":
+              $sub["attributes"]["icon"] = "studieren";
+              break;
+          }
+        }
+
+        if ($flex["dynamicComponents"] && sizeof($flex["dynamicComponents"]) > 0)
+          foreach ($flex["dynamicComponents"] as $comp) {
+            $stype = array_keys($comp['settings'])[0];
+            $elements = $this->checkText($comp['settings'][$stype][$stype], $dbReference, $processedData, $stype == "paragraph" ? "typo3_paragraph" : ($stype == "headline" ? "h3" : $stype));
+            $sub["subElements"] = array_merge($sub["subElements"], $elements);
+          }
+        $subs[] = $sub;
+        break;
+      case "mrm_be_cm_newsletterabo":
+        $newsletterabo = $this->createContentElement("newsletterabo", array("cr_url" => $flex["cr_url"], "cr_url_BIZ" => $flex["cr_url_BIZ"]));
+        $subs[] = $newsletterabo;
+        break;
+      case "mrm_be_cm_linkage":
+        $subs[] = $this->createContentElement("sidebarheadline", array(), array("text" => $flex['headline']));
+        $banners = $this->createContentElement("sidebarbanners");
+        if ($flex['dynamicComponents'] && sizeof($flex['dynamicComponents']) > 0)
+          foreach ($flex['dynamicComponents'] as $banner) {
+            $banners["subElements"][] = $this->createContentElement("banner", $this->parseFlexFormLink($banner["settings"]["link"]["link"], $dbReference, $processedData));
+          }
+        $subs[] = $banners;
+        $subs[] = $this->createContentElement("injection", array("type" => "rubrik_content"));
+        $processedData["injections"][] = "rubrik_content";
+
+        $berufenet = $this->createContentElement("sidebarexternallinks", array("type" => "berufenet"), array("items" => []));
+        if ($flex['dynamicComponentsBerufeNet'] && sizeof($flex['dynamicComponentsBerufeNet']) != 0)
+          foreach ($flex['dynamicComponentsBerufeNet'] as $itm) {
+            $link = $this->parseFlexFormLink($itm["settings"]["link"]["link"], $dbReference, $processedData);
+            $link = '<a href="' . $link['href'] . '" target="' . $link['target'] . '" aria-label="Externer Link">' . $link['alt'] . '</a>';
+            $berufenet["attributes"]["items"][] = $link;
+          }
+        if (sizeof($berufenet["attributes"]["items"]) > 0) $subs[] = $berufenet;
+
+        $berufetv = $this->createContentElement("sidebarexternallinks", array("type" => "berufetv"), array("items" => []));
+        if ($flex['dynamicComponentsBerufeTV'] && sizeof($flex['dynamicComponentsBerufeTV']) != 0)
+          foreach ($flex['dynamicComponentsBerufeTV'] as $itm) {
+            $link = $this->parseFlexFormLink($itm["settings"]["link"]["link"], $dbReference, $processedData);
+            $link = '<a href="' . $link['href'] . '" target="' . $link['target'] . '" aria-label="Externer Link">' . $link['alt'] . '</a>';
+            $berufetv["attributes"]["items"][] = $link;
+          }
+        if (sizeof($berufetv["attributes"]["items"]) > 0) $subs[] = $berufetv;
+
+        $berufsausbildung = $this->createContentElement("sidebarexternallinks", array("type" => "berufsausbildung"), array("items" => []));
+        if ($flex['dynamicComponentsBerufsausbildung'] && sizeof($flex['dynamicComponentsBerufsausbildung']) != 0)
+          foreach ($flex['dynamicComponentsBerufsausbildung'] as $itm) {
+            $link = $this->parseFlexFormLink($itm["settings"]["link"]["link"], $dbReference, $processedData);
+            $link = '<a href="' . $link['href'] . '" target="' . $link['target'] . '" aria-label="Externer Link">' . $link['alt'] . '</a>';
+            $berufsausbildung["attributes"]["items"][] = $link;
+          }
+        if (sizeof($berufsausbildung["attributes"]["items"]) > 0) $subs[] = $berufsausbildung;
+
+        $ba_search = $this->createContentElement("sidebarexternallinks", array("type" => "ba_search"), array("items" => []));
+        if ($flex['dynamicComponentsBASearch'] && sizeof($flex['dynamicComponentsBASearch']) != 0)
+          foreach ($flex['dynamicComponentsBASearch'] as $itm) {
+            $link = $this->parseFlexFormLink($itm["settings"]["link"]["link"], $dbReference, $processedData);
+            $link = '<a href="' . $link['href'] . '" target="' . $link['target'] . '" aria-label="Externer Link">' . $link['alt'] . '</a>';
+            $ba_search["attributes"]["items"][] = $link;
+          }
+        if (sizeof($ba_search["attributes"]["items"]) > 0) $subs[] = $ba_search;
+
+        $studienwahl = $this->createContentElement("sidebarexternallinks", array("type" => "studienwahl"), array("items" => []));
+        if ($flex['dynamicComponentsStudienwahl'] && sizeof($flex['dynamicComponentsStudienwahl']) != 0)
+          foreach ($flex['dynamicComponentsStudienwahl'] as $itm) {
+            $link = $this->parseFlexFormLink($itm["settings"]["link"]["link"], $dbReference, $processedData);
+            $link = '<a href="' . $link['href'] . '" target="' . $link['target'] . '" aria-label="Externer Link">' . $link['alt'] . '</a>';
+            $studienwahl["attributes"]["items"][] = $link;
+          }
+        if (sizeof($studienwahl["attributes"]["items"]) > 0) $subs[] = $studienwahl;
+
+        if ($flex['enable_check_u']) {
+          $check_u = $this->createContentElement("extimgbutton", array("ariaLabel" => "Zur Check-U-Website", "href" => "https://www.arbeitsagentur.de/bildung/welche-ausbildung-welches-studium-passt", "target" => "_blank"), array("imgsrc" => "/public/media/ext-link_check_u.png"));
+          $subs[] = $check_u;
+        }
+
+        if ($flex['enable_studiencheck']) {
+          $studiencheck = $this->createContentElement("extimgbutton", array("ariaLabel" => "Zur Studiencheck-Website", "href" => "https://studiencheck.de/", "target" => "_blank"), array("imgsrc" => "/public/media/ext-link_studiencheck.png"));
+          $subs[] = $studiencheck;
+        }
+
+        break;
+      case "mrm_be_cm_homeheaderinfo":
+        $items = array();
+        for ($i = 1; $i <= 3; $i++) {
+          if ($flex["headline" . $i] != "" && $flex["text" . $i] != "") {
+            $item = array("heading" => $flex["headline" . $i], "text" => $flex["text" . $i]);
+            if ($flex["link" . $i] != "") {
+              $link = $this->parseFlexFormLink($flex["link" . $i], $dbReference, $processedData);
+              $item["href"] = $link["href"];
+              $item["linkTarget"] = $link["target"];
+            }
+            if ($flex["image" . $i] == "1") {
+              $imgs = $this->processImagesTTContent($dbReference, 'mrm_be_cm_homeheaderinfo', 'tt_content', 'flex_image_' . $i, 'uid', false);
+              $item["image"] = "#cdnurl#/" . $imgs[0]["sources"][$flex["imagesize" . $i]];
+            }
+            $items[] = $item;
+          }
+        }
+        $subs[] = $this->createContentElement("abimessages", array("data" => $items));
+        break;
+      case "mrm_be_cm_tileoverview":
+        $items = array();
+        for ($i = 1; $i <= 8; $i++) {
+          if ($flex["link" . $i] == "") continue;
+          $item = array();
+          $link = $this->parseFlexFormLink($flex["link" . $i], $dbReference, $processedData);
+          $item["href"] = $link["href"];
+          $item["linkTarget"] = $link["target"];
+          $item["text"] = $link["alt"];
+          if ($flex["image" . $i] == "1") {
+            $imgs = $this->processImagesTTContent($dbReference, 'mrm_be_cm_tileoverview', 'tt_content', 'flex_image_' . $i, 'uid', false);
+            $item["image"] = "#cdnurl#/" . $imgs[0]["sources"]["default_hero_lte600"];
+          }
+          $items[] = $item;
+        }
+        $subs[] = $this->createContentElement("tileoverview", array("items" => $items));
+        break;
+      case "mrm_be_cm_highlightbox":
+        $elements = $this->checkText($flex["text"], $dbReference, $processedData, "typo3_paragraph");
+        $subs[] = $this->createContentElement("highlightbox", array("icon" => $flex["icon"]), array(), $elements);
+        break;
+      case "mrm_be_cm_statementbox":
+        $items = array();
+        $dynContentCounter = 0;
+        while (1) {
+          $dynContentCounter++;
+          if (!isset($flex['text' . $dynContentCounter])) break;
+          if ($flex['text' . $dynContentCounter] === '' || $flex['name' . $dynContentCounter] === '') continue;
+          $item = array(
+            'quote' => $flex['text' . $dynContentCounter],
+            'cite' => $flex['name' . $dynContentCounter]
+          );
+          if ($flex['image' . $dynContentCounter] == 1) {
+            $imgs = $this->processImagesTTContent($dbReference, 'mrm_be_cm_statementbox', 'tt_content', 'flex_image_' . $dynContentCounter, 'uid', false);
+            $imgs = $imgs[0];
+            $imgs['src'] = "#cdnurl#/" . $imgs['sources']['img'];
+            unset($imgs['sources']);
+            $item['img'] = $imgs;
+          }
+          $items[] = $item;
+        }
+        $subs[] = $this->createContentElement('statementbox', array('items' => $items));
+        break;
+      case "mrm_be_cm_explorerbox":
+        $items = array();
+        $dynContentCounter = 0;
+        while (1) {
+          $dynContentCounter++;
+          if (!isset($flex['head' . $dynContentCounter])) break;
+          if ($flex['head' . $dynContentCounter] === '' || $flex['claim' . $dynContentCounter] === '' || $flex['image' . $dynContentCounter] == 0) continue;
+          $item = array(
+            'heading' => $flex['head' . $dynContentCounter],
+            'subheading' => $flex['claim' . $dynContentCounter],
+            'text' => $flex['text' . $dynContentCounter]
+          );
+          if ($flex['image' . $dynContentCounter] == 1) {
+            $imgs = $this->processImagesTTContent($dbReference, 'mrm_be_cm_explorerbox', 'tt_content', 'flex_image_' . $dynContentCounter, 'uid', false);
+            $imgs = $imgs[0];
+            $imgs['src'] = "#cdnurl#/" . $imgs['sources']['img'];
+            unset($imgs['sources']);
+            $item['img'] = $imgs;
+          }
+          if ($flex['link' . $dynContentCounter] !== '') {
+            $button = $this->parseFlexFormLink($flex['link' . $dynContentCounter], $dbReference, $processedData);
+            $item['button'] = $button;
+          }
+          $items[] = $item;
+        }
+        $subs[] = $this->createContentElement('explorerbox', array('items' => $items));
+        break;
+      case "mrm_be_cm_dynamic_tileoverview":
+        $items = array();
+        foreach ($flex["dynamicComponents"] as $comp) {
+          foreach ($comp as $k => $v) {
+            $itm = null;
+            switch ($k) {
+              case "links":
+                $lnk = $this->parseFlexFormLink($v["link"], $dbReference, $processedData);
+                $itm = $this->createContentElement("tile_default", array("link" => $lnk, "coloured" => $v["coloured"] == 1, "allowed" => preg_split('/\+/', $v["type"]), "format" => $v["format"]));
+                if ($lnk["alt"]) $itm["props"]["headline"] = $lnk["alt"];
+                break;
+              case "buttons":
+                $itm = $this->createContentElement(
+                  "tile_content",
+                  array(
+                    "headline" => $v["headline"],
+                    "content" => $this->checkTextForInternalLinks($v["buttons"], $dbReference, $processedData)
+                  )
+                );
+                break;
+              case "icons":
+                $lnk = $this->parseFlexFormLink($v["link"], $dbReference, $processedData);
+                $itm = $this->createContentElement("tile_icon", array("link" => $lnk, "icon" => $v["icon"]), array());
+                if ($lnk["alt"]) $itm["props"]["headline"] = $lnk["alt"];
+                break;
+              case "flat":
+                $lnk = $this->parseFlexFormLink($v["link"], $dbReference, $processedData);
+                $itm = $this->createContentElement("tile_flat", array("link" => $lnk));
+                if ($lnk["alt"]) $itm["props"]["headline"] = $lnk["alt"];
+                break;
+              case "injections":
+                $itm = $this->createContentElement("injection", array("type" => $v["text"]));
+                $processedData["injections"][] = $v["text"];
+                break;
+            }
+            if ($itm)
+              $items[] = $itm;
+          }
+        }
+        $dto = $this->createContentElement('dynamic_tileoverview', array(), array(), $items);
+        if ($flex["cssClass"] && $flex["cssClass"] !== "")
+          $dto["attributes"]["cssClassName"] = $flex["cssClass"];
+        $subs[] = $dto;
+        $processedData["status"]["hasDynamicTileOverview"] = true;
+        break;
+      case "mrm_be_cm_podcast":
+        //$items = array();
+        if ($flex['media'] == "1")
+          $media = $this->processAudio($dbReference, 'mrm_be_cm_podcast', 'tt_content', 'media', 'uid', true, true);
+
+        if ($flex['transcript'])
+          $transcript = $flex['transcript'];
+        $subs[] = $this->createContentElement('podcast', array(), array('media' => $media, 'transcript' => $transcript));
+        break;
+      case "mrm_be_cm_imageplus":
+        $props = $this->processImagesTTContent($dbReference)[0];
+        $props["type"] = "imageplus";
+        $props["headline"] = $flex['headline'] ?? '';
+        $props["description"] = $flex['description'] ?? '';
+        $props["link"] = $this->parseFlexFormLink($flex["link"], $dbReference, $processedData);
+        $props["customcss"] = $flex['customcss'] ?? '';
+        $subs[] = $this->createContentElement('imageplus', $props);
+        break;
+      case "mrm_be_cm_interviewfrage":
+        $props['lang'] = $flex['lang'] ?? '';
+        $subs[] = $this->createContentElement("interviewfrage", $props, array("question" => trim($flex['question'])));
+        break;
+
+      case "mrm_be_cm_interviewantwort":
+        $props['lang'] = $flex['lang'] ?? '';
+        $subs[] = $this->createContentElement("interviewantwort", $props, array("interviewee" => trim($flex['interviewee']),"answer" => trim($flex['answer'])));
+        break;
+
+        case "mrm_be_cm_foldout_h3":
+          $sub = $this->createContentElement("typo3_foldout_h3", array("open" => $flex["isInitialyOpen"] == "1", "noAutoOpen" => $flex["noAutoOpen"] == "1"), array("headline" => $flex["headline"]), array());
+  
+          if ($flex["image"] == "1") {
+            $props = $this->processImagesTTContent($dbReference, "mrm_be_cm_contentimage")[0];
+            $props["type"] = "typo3_content";
+            $sub["subElements"][] = $this->createContentElement("image", $props);
+          } else {
+            switch ($flex["icon"]) {
+              case "1":
+                $sub["attributes"]["icon"] = "stadtinfo_basics";
+                break;
+              case "2":
+                $sub["attributes"]["icon"] = "geschichte";
+                break;
+              case "3":
+                $sub["attributes"]["icon"] = "kultur_freizeit";
+                break;
+              case "4":
+                $sub["attributes"]["icon"] = "besonderheiten";
+                break;
+              case "5":
+                $sub["attributes"]["icon"] = "kosten_geld";
+                break;
+              case "6":
+                $sub["attributes"]["icon"] = "hochschulen";
+                break;
+              case "7":
+                $sub["attributes"]["icon"] = "studieren";
+                break;
+            }
+          }
+  
+          if ($flex["dynamicComponents"] && sizeof($flex["dynamicComponents"]) > 0)
+            foreach ($flex["dynamicComponents"] as $comp) {
+              $stype = array_keys($comp['settings'])[0];
+              $elements = $this->checkText($comp['settings'][$stype][$stype], $dbReference, $processedData, $stype == "paragraph" ? "typo3_paragraph" : ($stype == "headline" ? "h4" : $stype));
+              $sub["subElements"] = array_merge($sub["subElements"], $elements);
+            }
+          $subs[] = $sub;
+          break;
+          case "mrm_be_cm_quiz_direct":
+            //print_r($flex); die();
+            $s = $this->createContentElement(
+              "quizdirect",
+              array(
+                "labels" => array(
+                  "startbutton" => $flex["startbuttontext"],
+                  "submitbutton" => $flex["submitbuttontext"],
+                  "nextbutton" => $flex["nextbuttontext"],
+                  "lastbutton" => $flex["lastbuttontext"],
+                  "question" => $flex["question"],
+                  "repeatbutton" => $flex["repeatbuttontext"],
+                  "qsuccess" => $flex["questionsuccesstext"],
+                  "qfail" => $flex["questionfailtext"],
+                ),
+                "resultscreen" => array(
+                  "headingTop" => $flex["resultheadingtop"],
+                  "headingSub" => $flex["resultheadingsub"],
+                  "validation" => $flex["validationstr"],
+                  "end" => $flex["thanks"]
+                ),
+                "isRestartAble" => $flex["isRestartAble"] == 1 || $flex["isRestartAble"] == "1",
+              ),
+              array(
+                "items" => array_values(array_map(function ($v) {
+                  $questionType = null;
+                  $quest = $v['settings']['question'];
+                  if (!isset($quest)) {
+                    $quest = $v['settings']['question_multi'];
+                    $questionType = "multi";
+                  }
+                  if (isset($quest["additional_text"]) && $quest["additional_text"] != "") {
+                    $quest["text"] = $quest["text"] . " (" . $quest["additional_text"] . ")";
+                    unset($quest["additional_text"]);
+                  }
+                  if ($questionType) $quest["type"] = $questionType;
+                  unset($quest["rightanswer"]);
+                  if(isset($quest['solutionText'])) $solution = $quest['solutionText'];
+                  unset($quest['solutionText']);
+                  $i = 0;
+                  $quest["answers"] = array();
+                  while (1) {
+                    $i++;
+                    if (!isset($quest["answertext" . $i])) break;
+                    if ($quest["answertext" . $i] === "") continue;
+                    $quest["answers"][] = array("text" => $quest["answertext" . $i],  "points" => (int)$quest["answerpoints" . $i]);
+                    unset($quest["answertext" . $i]);
+                    unset($quest["answerpoints" . $i]);
+                  }
+                  $quest["solution"] = $solution;
+
+                  return $quest;
+                }, $flex["dynamicComponents"])),
+
+                "validation" => array(
+                  "maxPoints" => (int)$flex["maxpoints"],
+                  "averagePoints" => $this->createContentElement("injection", array("type" => "quiz-averagePoints")),
+                  "alreadyReachedPoints" => $this->createContentElement("injection", array("type" => "quiz-alreadyReachedPoints")),
+
+                  "items" => ($flex["dynamicComponents2"] == 0) ? [] : array_map(
+                    function ($i) {
+                      if(empty($i["validationText"]))  $i["validationText"] = "";
+                      else $i["validationText"] = $this->checkTextForInternalLinks($i["validationText"], $dbReference, $processedData);
+                      return $i;
+                    },
+                    array_filter(array_values(array_map(function ($v) {
+                      return $v['settings']['validation'];
+                    }, $flex["dynamicComponents2"])), function ($x) {
+                      return $x != null;
+                    })
+                  ),
+                  
+                ),
+              )
+            );
+            $processedData["injections"][] = "quiz-averagePoints";
+            $processedData["injections"][] = "quiz-alreadyReachedPoints";
+            $subs[] = $s;
+            $processedData["status"]["hasQuiz"] = true;
+            break;
+
+      default:
+        $this->log("MISSING PROCESSDATA 4 " . $dbReference['CType']);
+        $this->log($flex, false);
+        break;
+    }
+  }
+
+  private function checkText($txt, $dbReference, &$processedData, $defaultElementType = "typo3_paragraph")
+  {
+    $txt = $this->checkTextForInternalLinks($txt, $dbReference, $processedData);
+    $txt = $this->refactorTextElements($txt, $defaultElementType);
+    return $txt;
+  }
+
+  private function refactorTextElements($txt, $defaultElementType)
+  {
+    if (strpos($txt, "<table") === FALSE) return [$this->createContentElement($defaultElementType, array(), array("text" => $txt))];
+    $elements = [];
+    while (($tablepos = strpos($txt, "<table")) !== FALSE) {
+      if ($tablepos != 0) {
+        //$this->log(trim(substr($txt, 0, $tablepos)));
+        $elements[] = $this->createContentElement($defaultElementType, array(), array("text" => trim(substr($txt, 0, $tablepos))));
+        $txt = substr($txt, $tablepos);
+      }
+      $tablepos = strpos($txt, "</table>") + 8;
+      $dom = new \DOMDocument();
+      @$dom->loadHTML('<?xml encoding="utf-8" ?><div id="sexy">' . trim(substr($txt, 0, $tablepos)) . '</div>', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
+      $tab = $this->createContentElement("table", array("rows" => array(), "columnCount" => 0));
+      foreach ($dom->getElementsByTagName('tr') as $tr) {
+        $par = $tr->parentNode;
+        $row = [];
+        if ($tab["props"]["columnCount"] == 0) {
+          foreach ($tr->childNodes as $e) {
+            if ($e->tagName == "td" ||  $e->tagName == "th") {
+              $tab["props"]["columnCount"]++;
+            }
+          }
+        }
+        foreach ($tr->childNodes as $e) {
+          if ($e->tagName != "td" && $e->tagName != "th") continue;
+          $innerHTML = '';
+          foreach ($e->childNodes as $n) $innerHTML .= $dom->saveHtml($n);
+          $row[] = array(
+            "html" => "<p>" . $innerHTML . "</p>",
+            "isHeader" => $par->tagName == "thead",
+            "isRowHeader" => $e->tagName == "th" && $par->tagName != "thead",
+          );
+        }
+        $tab["props"]["rows"][] = $row;
+      }
+      $elements[] = $tab;
+
+      $txt = substr($txt, $tablepos);
+    }
+    $txt = trim($txt);
+    if ($txt != "")
+      $elements[] = $this->createContentElement($defaultElementType, array(), array("text" => $txt));
+
+    return $elements;
+  }
+
+  private function checkTextForInternalLinks($txt, $dbReference, &$processedData)
+  {
+    $dom = new \DOMDocument();
+    @$dom->loadHTML('<?xml encoding="utf-8" ?><div id="sexy">' . $txt . '</div>', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
+    foreach ($dom->getElementsByTagName('a') as $link) {
+      $emptyHref = false;
+      $title = null;
+      $alt = null;
+      $href = null;
+      for ($i = 0; $i < $link->attributes->length; ++$i) {
+        $node = $link->attributes->item($i);
+        if ($node->nodeName == "href" && strpos($node->nodeValue, 'smartadserver.com') === FALSE) {
+          $nv = $node->nodeValue;
+          $nv = str_replace('&amp;', '&', $nv);
+          $href = $this->replaceT3Link($nv, $dbReference, $processedData);
+          $node->nodeValue = htmlspecialchars($href);
+          if ($node->nodeValue == '') $emptyHref = true;
+        }
+        if ($node->nodeName == "title" && $node->nodeValue != '') $title = $node->nodeValue;
+        if ($node->nodeName == "alt" && $node->nodeValue != '') $alt = $node->nodeValue;
+      }
+      if ($emptyHref) $link->removeAttribute('href');
+      else {
+        if (!$alt) {
+          //check for pdf files (AS-337)
+          if (strtolower(pathinfo($href, PATHINFO_EXTENSION)) == "pdf") {
+            $alt = "PDF-Download (öffnet sich in neuem Fenster)";
+            $link->setAttribute('target', '_blank');
+            $link->setAttribute('alt', $alt);
+          }
+        }
+      }
+      if ($title && !$alt) $link->setAttribute('alt', $title);
+      if ($title) $link->removeAttribute('title');
+    }
+
+    $txt = $dom->saveHTML($dom->getElementById('sexy'));
+    $txt = str_replace('<div id="sexy">', '', $txt);
+    $txt = substr($txt, 0, -6);
+    return trim($txt);
+  }
+
+  private function parseFlexFormLink($link, $dbReference, &$processedData)
+  {
+    $link = implode("/", explode("\/", $link));
+    [$href, $target, $css] = explode(" ", $link);
+    $alt = substr($link, strlen($href . $target . $css) + 3);
+    $alt = preg_replace('/&quot;/', '', trim($alt, " \""));
+    if ($href == "-") return null;
+    $href = $this->replaceT3Link($href, $dbReference, $processedData, true);
+    $ret = array("href" => $href);
+    if (!$target || $target == "-") $ret["target"] = "_top";
+    else $ret["target"] = $target;
+    if ($alt && $alt != "-") $ret["alt"] = $alt;
+    return $ret;
+  }
+
+  private function replaceT3Link($link, $dbReference, &$processedData, $addToLinkedPosts = false)
+  {
+    $uid = $this->parseUIDFromT3Url($link);
+    if (!$uid || $uid == '') return $link;
+    if (strpos($link, 't3://page?') !== false) {
+      if ($uid == "current") {
+        $link = str_replace('t3://page?uid=current', '', $link);
+      } else {
+        if ($addToLinkedPosts) {
+          $processedData['linkedPosts'][] = (int)$uid;
+          $link = "#linkedPost#" . $uid . "#/linkedPost#";
+        } else {
+          $pageStatement = $this->pageQueryBuilder
+            ->select('*')
+            ->from('pages')
+            ->setMaxResults(1)
+            ->where(
+              $this->pageQueryBuilder->expr()->eq('uid', $this->pageQueryBuilder->createNamedParameter($uid))
+            )
+            ->execute();
+
+          $post = $pageStatement->fetchAll();
+          $post = $post[0];
+          $link = $post['slug'];
+        }
+      }
+    }
+
+    if (strpos($link, 't3://file?') !== false)
+      $link = $this->setStaticFile($dbReference, $uid);
+
+    return $link;
+  }
+
+  private function setStaticFile($dbReference, $uid, $publicUrl = null)
+  {
+    $fnNameRef = $dbReference['pid'] . "|" . $dbReference['uid'] . "|" . $dbReference['CType'] . "|file|" . $uid;
+    if (!$publicUrl) {
+      $file = $this->resourceFactory->getFileObject($uid);
+      $publicUrl = $file->getPublicUrl();
+    }
+    try {
+      $fnName = basename($publicUrl);
+      $fnName = explode(".", $fnName);
+      $extension = array_pop($fnName);
+      $fnName = implode(".", $fnName);
+    } catch (Exception $e) {
+      $fnName = null;
+    }
+    return "#cdnurl#/" . $this->copyAndRenameFile($fnNameRef, "/" . $publicUrl, $fnName);
+  }
+
+  private function parseUIDFromT3Url($t3url)
+  {
+    $uid = null;
+    if ($t3url && $t3url != '' && substr($t3url, 0, 2) == "t3")
+      try {
+        parse_str(parse_url($t3url)['query'], $query);
+        $uid = $query['uid'];
+      } catch (Exception $e) {
+      }
+
+    return $uid;
+  }
+
+  private function createContentElement($type, $props = null, $attributes = null, $subElements = null)
+  {
+    if (is_null($props)) $props = array();
+    if (is_null($attributes)) $attributes = (object) array();
+    $props["__hbs_uid"] = '_ab' . mt_rand(0, 0xffffff) . '_' . mt_rand(0, 0xffffff);
+    $ele = array(
+      'type' => $type,
+      'props' => $props,
+      'attributes' => $attributes,
+    );
+    if (!is_null($subElements)) $ele['subElements'] = $subElements;
+    else $ele['subElements'] = [];
+    return $ele;
+  }
+
+  private function processVideo($dbReference)
+  {
+    $data = $this->resourceFactory->convertFlexFormDataToConfigurationArray($dbReference['pi_flexform']);
+    $vids = array();
+
+    foreach ($data['settings']['video'] as $value) {
+      if ($value['posterConfiguration'] && $value['posterConfiguration'] != '') $vids['poster'] = $value['posterConfiguration']['image'];
+      if ($value['mp4Configuration'] && $value['mp4Configuration'] != '') $vids['mp4'] = $value['mp4Configuration']['video'];
+      if ($value['ogvConfiguration'] && $value['ogvConfiguration'] != '') $vids['ogv'] = $value['ogvConfiguration']['video'];
+      if ($value['webmConfiguration'] && $value['webmConfiguration'] != '') $vids['webm'] = $value['webmConfiguration']['video'];
+      if ($value['threegpConfiguration'] && $value['threegpConfiguration'] != '') $vids['3gp'] = $value['threegpConfiguration']['video'];
+    }
+
+    foreach ($vids as $key => &$value) {
+      $value = "/" . $value;
+      $fnNameRef = $dbReference['pid'] . "|" . $dbReference['uid'] . "|" . $dbReference['CType'] . "|" . $key;
+      $value = $this->copyAndRenameFile($fnNameRef, $value);
+    }
+    return $vids;
+  }
+
+  private function processImagesTTContent($dbReference, $ctypeOverride = '', $table = 'tt_content', $tableColumn = 'image', $refField = 'uid', $useRelationFetch = true, $addCDNPrefix = false)
+  {
+    if ($useRelationFetch)
+      $fileObjects = $this->fileRepository->findByRelation($table, $tableColumn, $dbReference[$refField]);
+    else {
+      $sysfilerefQueryBuilder = $this->connection->getQueryBuilderForTable('sys_file_reference');
+      $sysfileStatement = $sysfilerefQueryBuilder
+        ->select('uid')
+        ->from('sys_file_reference')
+        ->andWhere(
+          $sysfilerefQueryBuilder->expr()->eq('uid_foreign', intval($dbReference[$refField])),
+          $sysfilerefQueryBuilder->expr()->eq('tablenames', $sysfilerefQueryBuilder->createNamedParameter($table)),
+          $sysfilerefQueryBuilder->expr()->eq('fieldname', $sysfilerefQueryBuilder->createNamedParameter($tableColumn)),
+        )
+        ->execute();
+
+      $frows = $sysfileStatement->fetchAll();
+      foreach ($frows as $fileuid) {
+        $fileObjects[] = $this->fileRepository->findFileReferenceByUid(intval($fileuid['uid']));
+      }
+    }
+    $processedImages = array();
+
+    $ctypeOverride = $ctypeOverride != '' ? $ctypeOverride : $dbReference['CType'];
+
+    foreach ($fileObjects as $key => $value) {
+      $img = array(
+        'reference' => $value->getReferenceProperties(),
+        'original' => $value->getOriginalFile()->getProperties(),
+      );
+
+      $imgfn = rtrim($img['original']['identifier'], "/");
+      $image = $this->imageService->getImage('fileadmin/' . $imgfn, null, false);
+      $cropvariantcollection = \TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::create($img['reference']['crop']);
+
+      $cropareas = $this->imageSizes[$ctypeOverride];
+
+      $processArray = array(
+        'sources' => array()
+      );
+
+      $alt = $img['reference']['alternative'] != NULL ? $img['reference']['alternative'] : ($img['original']['alternative'] != NULL ? $img['original']['alternative'] : NULL);
+      $title = $img['reference']['title'] != NULL ? $img['reference']['title'] : ($img['original']['title'] != NULL ? $img['original']['title'] : NULL);
+      $caption = $img['reference']['description'] != NULL ? $img['reference']['description'] : ($img['original']['description'] != NULL ? $img['original']['description'] : NULL);
+      $copyright = $img['reference']['copyright'] != NULL ? $img['reference']['copyright'] : ($img['original']['copyright'] != NULL ? $img['original']['copyright'] : NULL);
+      if ($alt != NULL) $processArray['alt'] = $alt;
+      if ($title != NULL) $processArray['title'] = $title;
+      if ($caption != NULL) $processArray['caption'] = $caption;
+      if ($copyright != NULL) $processArray['copyright'] = $copyright;
+
+      if ($cropareas['passthru']) {
+        if (is_array($cropareas['passthru'])) {
+          foreach ($cropareas['passthru'] as $sizename => $size) {
+            $processingInstructions = array(
+              'width' => $size['width'],
+              'minWidth' => $size['width'],
+              'maxWidth' => $size['width'],
+              'crop' => null
+            );
+            if ($size['height']) {
+              $processingInstructions = array_merge(
+                $processingInstructions,
+                array(
+                  'height' => $size['height'],
+                  'minHeight' => $size['height'],
+                  'maxHeight' => $size['height']
+                )
+              );
+            }
+            if ($size['maxHeight'])
+              $processingInstructions['maxHeight'] = $size['maxHeight'];
+            if ($size['minHeight'])
+              $processingInstructions['minHeight'] = $size['minHeight'];
+
+            $processedImage = $this->imageService->applyProcessingInstructions($image, $processingInstructions);
+            $imageUri = $this->imageService->getImageUri($processedImage);
+
+
+            $fnNameRef = $dbReference['pid'] . "|" . $dbReference['uid'] . "|" . $ctypeOverride . "|" . $img['reference']['uid'] . "|passthru|" . $sizename;
+
+            $processArray['sources'][$sizename] = $this->copyAndRenameFile($fnNameRef, $imageUri, $processArray['alt']);
+          }
+        } else {
+          $fnNameRef = $dbReference['pid'] . "|" . $dbReference['uid'] . "|" . $ctypeOverride . "|" . $img['reference']['uid'] . "|passthru";
+          $imageUri = $this->imageService->getImageUri($image);
+          $processArray['sources']['passthru'] = ($addCDNPrefix ? "#cdnurl#/" : "") . $this->copyAndRenameFile($fnNameRef, $imageUri, $processArray['alt']);
+        }
+      } else
+        foreach ($cropareas as $cropareaname => $sizes) {
+          $croparea = $cropvariantcollection->getCropArea($cropareaname);
+
+          foreach ($sizes as $sizename => $size) {
+            if ($dbReference["doktype"] && $size['allowed_doktypes'] && !in_array($dbReference["doktype"], $size['allowed_doktypes'])) continue;
+            $processingInstructions = array(
+              'width' => $size['width'],
+              'minWidth' => $size['width'],
+              'maxWidth' => $size['width'],
+              'crop' => $croparea->isEmpty() ? null : $croparea->makeAbsoluteBasedOnFile($image)
+            );
+            if ($size['height']) {
+              $processingInstructions = array_merge(
+                $processingInstructions,
+                array(
+                  'height' => $size['height'],
+                  'minHeight' => $size['height'],
+                  'maxHeight' => $size['height']
+                )
+              );
+            }
+            if ($size['maxHeight'])
+              $processingInstructions['maxHeight'] = $size['maxHeight'];
+            if ($size['minHeight'])
+              $processingInstructions['minHeight'] = $size['minHeight'];
+
+            $processedImage = $this->imageService->applyProcessingInstructions($image, $processingInstructions);
+            $imageUri = $this->imageService->getImageUri($processedImage);
+
+
+            $fnNameRef = $dbReference['pid'] . "|" . $dbReference['uid'] . "|" . $ctypeOverride . "|" . $img['reference']['uid'] . "|" . $cropareaname . "|" . $sizename;
+
+            $processArray['sources'][$sizename] = ($addCDNPrefix ? "#cdnurl#/" : "") . $this->copyAndRenameFile($fnNameRef, $imageUri, $processArray['alt']);
+          }
+        }
+      $processedImages[] = $processArray;
+    }
+
+    return $processedImages;
+  }
+
+  private function processAudio($dbReference, $ctypeOverride = '', $table = 'tt_content', $tableColumn = 'media', $refField = 'uid', $useRelationFetch = true, $copyToCDN = false)
+  {
+    if ($useRelationFetch)
+      $fileObjects = $this->fileRepository->findByRelation($table, $tableColumn, $dbReference[$refField]);
+    else {
+      $sysfilerefQueryBuilder = $this->connection->getQueryBuilderForTable('sys_file_reference');
+      $sysfileStatement = $sysfilerefQueryBuilder
+        ->select('uid')
+        ->from('sys_file_reference')
+        ->andWhere(
+          $sysfilerefQueryBuilder->expr()->eq('uid_foreign', intval($dbReference[$refField])),
+          $sysfilerefQueryBuilder->expr()->eq('tablenames', $sysfilerefQueryBuilder->createNamedParameter($table)),
+          $sysfilerefQueryBuilder->expr()->eq('fieldname', $sysfilerefQueryBuilder->createNamedParameter($tableColumn)),
+        )
+        ->execute();
+
+      $frows = $sysfileStatement->fetchAll();
+
+      foreach ($frows as $fileuid) {
+        $fileObjects[] = $this->fileRepository->findFileReferenceByUid(intval($fileuid['uid']));
+      }
+    }
+    $processedAudio = array();
+    $audio = [];
+
+    $ctypeOverride = $ctypeOverride != '' ? $ctypeOverride : $dbReference['CType'];
+
+    foreach ($fileObjects as $key => $value) {
+      $processedAudio = array(
+        'reference' => $value->getReferenceProperties(),
+        'original' => $value->getOriginalFile()->getProperties(),
+      );
+
+      if ($copyToCDN) {
+        $oringalFile = $processedAudio['original']['identifier'];
+        $extension = pathinfo($processedAudio['original']['identifier'], PATHINFO_EXTENSION);
+        $targetFile = substr(sha1($processedAudio['original']['identifier']), 0, 5) . '_podcast.' . $extension;
+        $oringalFile = '/fileadmin' . $oringalFile;
+        $url = $this->copyPodcastAudioFileToCDN($oringalFile, $targetFile);
+      }
+
+      $audio['name'] = $processedAudio['original']['name'];
+      $audio['url'] = $url;
+      $audio['title'] = $processedAudio['reference']['title'];
+      $audio['description'] = $processedAudio['reference']['description'];
+    }
+    return $audio;
+  }
+
+  private function copyAndRenameFile($destinationFnRef, $sourceUri, $altText = null)
+  {
+    $shaFileRef = sha1($destinationFnRef);
+    $workPath = substr($shaFileRef, 0, 2) . "/" . substr($shaFileRef, 2, 2);
+    $workFnPrefix = $shaFileRef;
+    if ($altText) {
+      $altText = substr($altText, 0, 100);
+      $workFnPrefix = $this->sanitizeString($altText) . "-" . $shaFileRef;
+    }
+    $workFn = $workFnPrefix . "." . pathinfo($sourceUri, PATHINFO_EXTENSION);
+
+    if (!file_exists(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $workPath)) {
+      mkdir(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $workPath, 0777, true);
+    }
+    copy(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . $sourceUri, \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $workPath . '/' . $workFn);
+
+    return $workPath . '/' . $workFn;
+  }
+
+  private function copyPodcastAudioFileToCDN($sourceFile, $destinationFile)
+  {
+    $dir = 'podcast';
+    if (!file_exists(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $dir)) {
+      mkdir(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $dir, 0777, true);
+    }
+    copy(\TYPO3\CMS\Core\Core\Environment::getPublicPath() . $sourceFile, \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/cdn/' . $dir . '/' . $destinationFile);
+
+    return '#cdnurl#/' . $dir . '/' . $destinationFile;
+  }
+
+  public function processCmdmap_deleteAction($table, $id, $recordToDelete, $recordWasDeleted = NULL, \TYPO3\CMS\Core\DataHandling\DataHandler &$pObj)
+  {
+    //$this->log('processCmdmap_deleteAction');
+    if ($table == "pages") {
+      Mongoer::sendRequest("pages", "delete", array("pageuid" => $id));
+      Mongoer::sendRequest("abialtcache", "delete", array("pageuid" => $pid));
+      Mongoer::sendRequest("search", "delete", array("pageuid" => $id));
+      Mongoer::sendRequest("security", "delete", array("pageuid" => $id));
+      Mongoer::sendRequest("previews", "delete", array("pageuid" => $id));
+    }
+  }
+
+  /* PRIVATES */
+  private function log($msg, $isString = true)
+  {
+    if (!$isString) {
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/var/www/html/public/typo3temp/debug.log', $msg . PHP_EOL, FILE_APPEND);
+  }
+}

+ 78 - 0
Classes/Mongoer.php

@@ -0,0 +1,78 @@
+<?php
+namespace Meramo\mrm_be;
+
+class Mongoer
+{
+  function __construct(){}
+
+  public static function sendRequest($dataType, $action, $data){
+      $mongodburl = $_ENV['FE_DATABASE_DSN'];
+      $mongodbdb = $_ENV['FE_DATABASE'];
+    $client = new \MongoDB\Client($mongodburl);
+    $collection = null;
+    if($dataType == "pages")
+      $collection = $client->$mongodbdb->pages;
+
+    if($dataType == "search")
+      $collection = $client->$mongodbdb->searches;
+
+    if($dataType == "topthemen")
+      $collection = $client->$mongodbdb->topthemens;
+
+    if($dataType == "themaderwoche")
+      $collection = $client->$mongodbdb->themaderwoches;
+
+    if($dataType == "security")
+      $collection = $client->$mongodbdb->pagesecurities;
+
+    if($dataType == "abialtcache")
+      $collection = $client->$mongodbdb->abialtcaches;
+
+    if($dataType == "menues")
+      $collection = $client->$mongodbdb->menues;
+
+    if($dataType == "maintenance")
+      $collection = $client->$mongodbdb->maintenance;
+
+    if($dataType == "redirects")
+      $collection = $client->$mongodbdb->redirects;
+
+    if($dataType == "forwardings") 
+      $collection = $client->$mongodbdb->forwardings;
+    
+    if($dataType == "pdfgenjobs") 
+      $collection = $client->$mongodbdb->pdfgenjobs;
+    if($dataType == "chatbot") 
+      $collection = $client->$mongodbdb->chatbot;
+
+    if(!$collection) return self::log("no collection for senddata: ".$dataType);
+
+    self::log("sendRequest ".$action." ".$dataType);
+    if($action == "save"){
+      $updateResult = $collection->updateOne(
+          ['pageuid' => $data['pageuid']],
+          ['$set' => $data],
+          ['upsert' => true],
+        );
+    }
+    if($action == "delete"){
+      $collection->deleteOne(['pageuid' => $data['pageuid']]);
+    }
+    if($action == "deleteAll") {
+      $collection->deleteMany([]);
+    }
+  }
+
+  /* PRIVATES */
+  private static function log($msg, $isString = true){
+    if(!$isString){
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/tmp/t3mongoerdebug.log', $msg.PHP_EOL, FILE_APPEND);
+  }
+
+  /* Private function to drop a collection */
+  public static function deleteAll($collection) {
+    return $collection->deleteMany();
+  }
+}

+ 63 - 0
Classes/Task/PageStatusValidator.php

@@ -0,0 +1,63 @@
+<?php
+namespace Meramo\mrm_be\Task;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
+use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
+
+class PageStatusValidator extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
+  public function execute(){
+    $connection = GeneralUtility::makeInstance(ConnectionPool::class);
+
+    $pageQueryBuilder = $connection->getQueryBuilderForTable('pages');
+    $pageQueryBuilder->getRestrictions()->removeAll()
+      ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
+      ->add(GeneralUtility::makeInstance(HiddenRestriction::class))
+    ;
+
+    $postStatement = $pageQueryBuilder
+                  ->update('pages')
+                  ->orWhere(
+                    $pageQueryBuilder->expr()->eq('red_status', 11),
+                    $pageQueryBuilder->expr()->eq('red_status', 12),
+                  )
+                  ->andWhere(
+                    $pageQueryBuilder->expr()->neq('deleted', 1),
+                    $pageQueryBuilder->expr()->gt('endtime', 0),
+                    $pageQueryBuilder->expr()->lte('endtime', (new \DateTime())->getTimestamp()),
+                  )
+                  ->set('red_status', 22)
+                  ->execute();
+
+
+    $pageQueryBuilderOnline = $connection->getQueryBuilderForTable('pages');
+    $pageQueryBuilderOnline->getRestrictions()->removeAll()
+      ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
+      ->add(GeneralUtility::makeInstance(HiddenRestriction::class))
+    ;
+
+    $postStatementOnline = $pageQueryBuilderOnline
+                  ->update('pages')
+                  ->where(
+                    $pageQueryBuilderOnline->expr()->eq('red_status', 11)
+                  )
+                  ->andWhere(
+                    $pageQueryBuilderOnline->expr()->neq('deleted', 1),
+                    $pageQueryBuilderOnline->expr()->lte('starttime', (new \DateTime())->getTimestamp()),
+                  )
+                  ->set('red_status', 12)
+                  ->execute();
+                  
+    return TRUE;
+  }
+
+  /* PRIVATES */
+  private function log($msg, $isString = true){
+    if(!$isString){
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/var/www/html/typo3temp/debug.log', $msg.PHP_EOL, FILE_APPEND);
+  }
+
+}

+ 56 - 0
Classes/Task/RedirectsFromMysqlToMongo.php

@@ -0,0 +1,56 @@
+<?php
+namespace Meramo\mrm_be\Task;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
+use \Meramo\mrm_be\Mongoer as Mongoer;
+
+class RedirectsFromMysqlToMongo extends  \TYPO3\CMS\Scheduler\Task\AbstractTask {
+    public function execute(){
+        $connection = GeneralUtility::makeInstance(ConnectionPool::class);
+
+        $redirectsQueryBuilder = $connection->getQueryBuilderForTable('sys_redirect');
+        $redirectsQueryBuilder->getRestrictions()->removeAll()
+            ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
+        ;
+
+        $mongoRedirects = [];
+
+        $selectStatement = $redirectsQueryBuilder
+                        ->select('uid','source_path', 'target', 'target_statuscode')
+                        ->from('sys_redirect')
+                        ->where(
+                            $redirectsQueryBuilder->expr()->eq('deleted', 0)
+                        )
+                        ->andwhere(
+                            $redirectsQueryBuilder->expr()->eq('disabled', 0)
+                        )
+                        ->execute();
+
+        $results = $selectStatement->fetchAll();
+
+        Mongoer::sendRequest("forwardings", "deleteAll", null);
+
+        foreach($results as $k => $redirect) {
+            $data = [
+                'pageuid' => $redirect['uid'],
+                'source' => $redirect['source_path'],
+                'target' => $redirect['target'],
+                'statusCode' => $redirect['target_statuscode'],
+
+            ]; 
+
+            Mongoer::sendRequest('forwardings', 'save', $data);
+        }
+
+        return TRUE;                        
+    }
+
+    private function log($msg, $isString = true){
+        if(!$isString){
+          $msg = json_encode($msg, JSON_PRETTY_PRINT);
+        }
+        file_put_contents('/var/www/html/typo3temp/debug.log', $msg.PHP_EOL, FILE_APPEND);
+      }
+}

+ 75 - 0
Classes/UserFunc/Pages.php

@@ -0,0 +1,75 @@
+<?php
+namespace Meramo\mrm_be\UserFunc;
+
+use \TYPO3\CMS\Core\Utility\GeneralUtility;
+use \TYPO3\CMS\Core\Database\ConnectionPool;
+use \TYPO3\CMS\Core\Context\Context;
+
+class Pages
+{
+  function __construct(){
+    $connection = GeneralUtility::makeInstance(ConnectionPool::class);
+    $this->connection = $connection;
+  }
+
+  public function render_author_ro($pa, $fObj){
+    $context = GeneralUtility::makeInstance(Context::class);
+    $id = array_keys($_GET["edit"]["pages"])[0];
+    if(!$id) return "ERR: !id";
+
+    $queryBuilder = $this->connection->getQueryBuilderForTable('be_users');
+    $queryBuilder->getRestrictions()->removeAll();
+    $statement = $queryBuilder
+      ->select('realName')
+      ->from('be_users')
+      ->innerJoin(
+        'be_users',
+        'pages',
+        'p',
+        $queryBuilder->expr()->eq('be_users.uid', $queryBuilder->quoteIdentifier('p.cruser_id'))
+      )
+      ->setMaxResults(1)
+      ->where(
+        $queryBuilder->expr()->eq('p.uid', $id)
+      )
+      ->execute()
+    ;
+    $result = $statement->fetchAll();
+    if(sizeof($result) == 0) return "ERR: size==0";
+    return $result[0]["realName"];
+  }
+
+  public function render_last_editor_ro($pa, $fObj){
+    $context = GeneralUtility::makeInstance(Context::class);
+    $id = array_keys($_GET["edit"]["pages"])[0];
+    if(!$id) return "ERR: !id";
+
+    $queryBuilder = $this->connection->getQueryBuilderForTable('be_users');
+    $queryBuilder->getRestrictions()->removeAll();
+    $statement = $queryBuilder
+      ->select('realName')
+      ->from('be_users')
+      ->innerJoin(
+        'be_users',
+        'sys_log',
+        'l',
+        $queryBuilder->expr()->eq('be_users.uid', $queryBuilder->quoteIdentifier('l.userid'))
+      )
+      ->setMaxResults(1)
+      ->where(
+        $queryBuilder->expr()->eq('l.recuid', $id)
+      )
+      ->execute()
+    ;
+    $result = $statement->fetchAll();
+    if(sizeof($result) == 0) return "ERR: size==0";
+    return $result[0]["realName"];
+  }
+
+  private function log($msg, $isString = true){
+    if(!$isString){
+      $msg = json_encode($msg, JSON_PRETTY_PRINT);
+    }
+    file_put_contents('/var/www/html/typo3temp/debug.log', "--- UserFunc/Pages ---".PHP_EOL.$msg.PHP_EOL, FILE_APPEND);
+  }
+}

+ 16 - 0
Configuration/Backend/AjaxRoutes.php

@@ -0,0 +1,16 @@
+<?php
+
+return [
+  'mrm_be_dkz_branch' => [
+      'path' => '/dkz/branch',
+      'target' => \Meramo\mrm_be\Controller\DKZController::class . '::getBranchAction',
+  ],
+  'mrm_be_dkz_lists' => [
+      'path' => '/dkz/lists',
+      'target' => \Meramo\mrm_be\Controller\DKZController::class . '::getListsAction',
+  ],
+  'mrm_be_dkz_search' => [
+      'path' => '/dkz/search',
+      'target' => \Meramo\mrm_be\Controller\DKZController::class . '::getSearchedAction',
+  ],
+];

+ 238 - 0
Configuration/FlexForms/additionalinfobox.xml

@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.boxtext>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxtext</title>
+                <el>
+                  <boxtext>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxtext</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </boxtext>
+                </el>
+              </settings.boxtext>
+              <settings.boxheadline>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxheadline</title>
+                <el>
+                  <boxheadline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxheadline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </boxheadline>
+                </el>
+              </settings.boxheadline>
+              <settings.box>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.box</title>
+                <el>
+                  <boxheadline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxheadline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </boxheadline>
+                  <boxtext>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.boxtext</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </boxtext>
+                </el>
+              </settings.box>
+              <settings.html>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.html</title>
+                <el>
+                  <html>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.html</label>
+                      <config>
+                        <type>text</type>
+                        <cols>250</cols>
+                        <rows>15</rows>
+                      </config>
+                    </TCEforms>
+                  </html>
+                </el>
+              </settings.html>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.mainheadline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Weitere Informationen</default>
+              </config>
+            </TCEforms>
+          </headline>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.contentimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.0</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.1</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.2</numIndex>
+                  <numIndex index="1">2</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.3</numIndex>
+                  <numIndex index="1">3</numIndex>
+                </numIndex>
+                <numIndex index="4">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.4</numIndex>
+                  <numIndex index="1">4</numIndex>
+                </numIndex>
+                <numIndex index="5">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.5</numIndex>
+                  <numIndex index="1">5</numIndex>
+                </numIndex>
+                <numIndex index="6">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.6</numIndex>
+                  <numIndex index="1">6</numIndex>
+                </numIndex>
+                <numIndex index="7">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_additionalinfobox.icon.7</numIndex>
+                  <numIndex index="1">7</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </icon>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 108 - 0
Configuration/FlexForms/animation.xml

@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <addJQuery>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_animation.addJQuery</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </addJQuery>
+          <script>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_animation.script</label>
+              <config>
+                <type>text</type>
+                <cols>250</cols>
+                <rows>15</rows>
+              </config>
+            </TCEforms>
+          </script>
+          <staticfiles>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_animation.staticfiles</label>
+              <config>
+                <type>inline</type>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </staticfiles>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 54 - 0
Configuration/FlexForms/button.xml

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_button.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text>
+          <button>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_button.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <eval>required</eval>
+              </config>
+            </TCEforms>
+          </button>
+          <buttonType>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_button.buttonType</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_button.buttonLink</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_button.buttonScream</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </buttonType>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 35 - 0
Configuration/FlexForms/chatbot-direct.xml

@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+    <meta>
+        <langDisable>1</langDisable>
+    </meta>
+    <sheets>
+        <sDEF>
+            <ROOT>
+                <type>array</type>
+                <el>
+                    <settings.terms>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_chatbot.terms</label>
+                            <config>
+                                <type>text</type>
+                                <eval>trim,required</eval>
+                                <rows>5</rows>
+                                <cols>200</cols>
+                            </config>
+                        </TCEforms>
+                    </settings.terms>
+                    <settings.url>
+                        <TCEforms>
+                          <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_chatbot.url</label>
+                          <config>
+                            <type>input</type>
+                            <renderType>inputLink</renderType>
+                          </config>
+                        </TCEforms>
+                    </settings.url>
+                </el>
+            </ROOT>
+        </sDEF>
+    </sheets>
+</T3DataStructure>

+ 87 - 0
Configuration/FlexForms/chatbot.xml

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+    <meta>
+        <langDisable>1</langDisable>
+    </meta>
+    <sheets>
+        <sDEF>
+            <ROOT>
+                <type>array</type>
+                <el>
+                    <settings.terms>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_chatbot.terms</label>
+                            <config>
+                                <type>text</type>
+                                <eval>trim,required</eval>
+                                <rows>5</rows>
+                                <cols>200</cols>
+                            </config>
+                        </TCEforms>
+                    </settings.terms>
+                    <settings.type>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_chatbot.type</label>
+                            <config>
+                                <type>select</type>
+                                <eval>required</eval>
+                                <renderType>selectSingle</renderType>
+                                <items type="array">
+                                  <numIndex index="0" type="array">
+                                    <numIndex index="0">Auswählen</numIndex>
+                                    <numIndex index="1"></numIndex>
+                                  </numIndex>
+                                  <numIndex index="2" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">medical</numIndex>
+                                  </numIndex>
+                                  <numIndex index="3" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">bewerbung</numIndex>
+                                  </numIndex>
+                                  <numIndex index="4" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">weiterbildung</numIndex>
+                                  </numIndex>
+                                  <numIndex index="5" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">reverse</numIndex>
+                                  </numIndex>
+                                 <numIndex index="6" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">unknown</numIndex>
+                                  </numIndex> 
+                                </items>
+                            </config>
+                        </TCEforms>
+                    </settings.type>
+                    <settings.category>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_chatbot.category</label>
+                            <displayCond>FIELD:settings.type:=:reverse</displayCond>
+                            <config>
+                                <type>select</type>
+                                 <eval>required</eval>
+                                <renderType>selectSingle</renderType>
+                                <items type="array">
+                                  <numIndex index="0" type="array">
+                                    <numIndex index="0"></numIndex>
+                                    <numIndex index="1">Auswählen</numIndex>
+                                  </numIndex>
+                                  <numIndex index="1" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">studium</numIndex>
+                                  </numIndex>
+                                  <numIndex index="2" type="array">
+                                    <numIndex index="0">type</numIndex>
+                                    <numIndex index="1">ausbildung</numIndex>
+                                  </numIndex>
+                                </items>
+                            </config>
+                        </TCEforms>
+                    </settings.category>
+                </el>
+            </ROOT>
+        </sDEF>
+    </sheets>
+</T3DataStructure>

+ 176 - 0
Configuration/FlexForms/checklist-input.xml

@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.category_1</sheetTitle>
+        <type>array</type>
+        <el>
+          <label1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.categoryHeadline_1</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Fähigkeiten</default>
+              </config>
+            </TCEforms>
+          </label1>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sDEF2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.category_2</sheetTitle>
+        <type>array</type>
+        <el>
+          <label2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.categoryHeadline_2</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Berufliche Vorlieben</default>
+              </config>
+            </TCEforms>
+          </label2>
+        </el>
+      </ROOT>
+    </sDEF2>
+    <sDEF3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.category_3</sheetTitle>
+        <type>array</type>
+        <el>
+          <label3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.categoryHeadline_3</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Interessen</default>
+              </config>
+            </TCEforms>
+          </label3>
+        </el>
+      </ROOT>
+    </sDEF3>
+    <sDEF4>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.category_4</sheetTitle>
+        <type>array</type>
+        <el>
+          <label4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.categoryHeadline_4</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Soziale Kompetenzen</default>
+              </config>
+            </TCEforms>
+          </label4>
+        </el>
+      </ROOT>
+    </sDEF4>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline_main>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.headline_main</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Das bin ich</default>
+              </config>
+            </TCEforms>
+          </headline_main>
+          <intro>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.intro</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Trage in die Felder ein, wie du dich in den jeweiligen Kategorien einschätzt.</default>
+              </config>
+            </TCEforms>
+          </intro>
+          <headline_result>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.headline_result</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>So hast du dich eingeschätzt:</default>
+              </config>
+            </TCEforms>
+          </headline_result>
+          <enable_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.enable_print</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_print>
+          <enable_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.enable_pdf</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_pdf>
+          <label_submit>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.label_submit</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Zur Übersicht</default>
+              </config>
+            </TCEforms>
+          </label_submit>
+          <label_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.label_print</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Drucken</default>
+              </config>
+            </TCEforms>
+          </label_print>
+          <label_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-input.settings.label_pdf</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>PDF speichern</default>
+              </config>
+            </TCEforms>
+          </label_pdf>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 409 - 0
Configuration/FlexForms/checklist-radiorange.xml

@@ -0,0 +1,409 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationTitle</sheetTitle>
+        <type>array</type>
+        <el>
+          <pointsFrom1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_from</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </pointsFrom1>
+          <pointsTo1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_to</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>3</default>
+              </config>
+            </TCEforms>
+          </pointsTo1>
+          <validationText1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationText</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE_skala</richtextConfiguration>
+                <default>Du bist noch ziemlich unentschlossen, was du mal werden willst.</default>
+              </config>
+            </TCEforms>
+          </validationText1>
+          <image1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationImage</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sDEF2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationTitle</sheetTitle>
+        <type>array</type>
+        <el>
+          <pointsFrom2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_from</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>4</default>
+              </config>
+            </TCEforms>
+          </pointsFrom2>
+          <pointsTo2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_to</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>7</default>
+              </config>
+            </TCEforms>
+          </pointsTo2>
+          <validationText2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationText</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE_skala</richtextConfiguration>
+                <default>Du hast schon einen roten Faden, aber bist noch nicht ganz "ready for prime time".</default>
+              </config>
+            </TCEforms>
+          </validationText2>
+          <image2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationImage</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2>
+        </el>
+      </ROOT>
+    </sDEF2>
+    <sDEF3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationTitle</sheetTitle>
+        <type>array</type>
+        <el>
+          <pointsFrom3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_from</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>8</default>
+              </config>
+            </TCEforms>
+          </pointsFrom3>
+          <pointsTo3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validation_points_to</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>10</default>
+              </config>
+            </TCEforms>
+          </pointsTo3>
+          <validationText3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationText</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <default>Dir braucht man nichts mehr zu sagen. Du weißt schon, wo die Reise hingeht.</default>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE_skala</richtextConfiguration>
+              </config>
+            </TCEforms>
+          </validationText3>
+          <image3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.validationImage</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3>
+        </el>
+      </ROOT>
+    </sDEF3>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline_main>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.settings.headline_main</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Selbsteinschätzung: Berufswahl</default>
+              </config>
+            </TCEforms>
+          </headline_main>
+          <intro>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-radiorange.settings.intro</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Wie schätzt du dich hinsichtlich deiner Berufswahl auf einer Skala von 1 bis &lt;MAXPOINTS&gt; ein?</default>
+              </config>
+            </TCEforms>
+          </intro>
+          <maxpoints>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.checklist-radiorange.settings.maxpoints</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>10</default>
+              </config>
+            </TCEforms>
+          </maxpoints>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 274 - 0
Configuration/FlexForms/checklist-scale.xml

@@ -0,0 +1,274 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_1</sheetTitle>
+        <type>array</type>
+        <el>
+          <label1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_1</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Durchsetzungsfähigkeit</default>
+              </config>
+            </TCEforms>
+          </label1>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sDEF2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_2</sheetTitle>
+        <type>array</type>
+        <el>
+          <label2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_2</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Spontane Handlungsbereitschaft</default>
+              </config>
+            </TCEforms>
+          </label2>
+        </el>
+      </ROOT>
+    </sDEF2>
+    <sDEF3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_3</sheetTitle>
+        <type>array</type>
+        <el>
+          <label3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_3</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Stressresistenz</default>
+              </config>
+            </TCEforms>
+          </label3>
+        </el>
+      </ROOT>
+    </sDEF3>
+    <sDEF4>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_4</sheetTitle>
+        <type>array</type>
+        <el>
+          <label4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_4</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Teamorientierung</default>
+              </config>
+            </TCEforms>
+          </label4>
+        </el>
+      </ROOT>
+    </sDEF4>
+    <sDEF5>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_5</sheetTitle>
+        <type>array</type>
+        <el>
+          <label5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_5</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Einfühlungsvermögen</default>
+              </config>
+            </TCEforms>
+          </label5>
+        </el>
+      </ROOT>
+    </sDEF5>
+    <sDEF6>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_6</sheetTitle>
+        <type>array</type>
+        <el>
+          <label6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_6</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Sorgfältiges Arbeiten</default>
+              </config>
+            </TCEforms>
+          </label6>
+        </el>
+      </ROOT>
+    </sDEF6>
+    <sDEF7>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_7</sheetTitle>
+        <type>array</type>
+        <el>
+          <label7>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_7</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Konfliktbereitschaft</default>
+              </config>
+            </TCEforms>
+          </label7>
+        </el>
+      </ROOT>
+    </sDEF7>
+    <sDEF8>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.category_8</sheetTitle>
+        <type>array</type>
+        <el>
+          <label8>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.categoryHeadline_8</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Verantwortungsbereitschaft</default>
+              </config>
+            </TCEforms>
+          </label8>
+        </el>
+      </ROOT>
+    </sDEF8>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline_main>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.headline_main</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Meine sozialen Kompetenzen</default>
+              </config>
+            </TCEforms>
+          </headline_main>
+          <intro>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.intro</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Wie schätzt du dich hinsichtlich deiner Kompetenzen auf einer Skala von 1 bis &lt;MAXPOINTS&gt; ein?</default>
+              </config>
+            </TCEforms>
+          </intro>
+          <headline_result>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.headline_result</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Dein persönliches Ranking:</default>
+              </config>
+            </TCEforms>
+          </headline_result>
+          <maxpoints>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.checklist-scale.settings.maxpoints</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>5</default>
+              </config>
+            </TCEforms>
+          </maxpoints>
+          <enable_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.enable_print</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_print>
+          <enable_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.enable_pdf</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_pdf>
+          <label_nextbutton>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.label_nextbutton</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Weiter</default>
+              </config>
+            </TCEforms>
+          </label_nextbutton>
+          <label_lastbutton>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.label_lastbutton</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Zur Auswertung</default>
+              </config>
+            </TCEforms>
+          </label_lastbutton>
+          <label_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.label_print</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Drucken</default>
+              </config>
+            </TCEforms>
+          </label_print>
+          <label_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-scale.settings.label_pdf</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>PDF speichern</default>
+              </config>
+            </TCEforms>
+          </label_pdf>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 121 - 0
Configuration/FlexForms/checklist-todo-multi.xml

@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sITEMS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.items.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <items>
+            <section>1</section>
+            <type>array</type>
+            <el>
+              <item>
+              <type>array</type>
+              <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.items.title</title>
+                <el>
+                   <head>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.items.head</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </head>
+                  <list>
+                   <TCEforms>
+                    <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_paragraph.subtitle</label>
+                    <config>
+                      <type>text</type>
+                      <eval>trim,required</eval>
+                      <rows>5</rows>
+                      <cols>200</cols>
+                      <enableRichtext>true</enableRichtext>
+                      <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                    </config>
+                  </TCEforms>
+                </list>
+                </el> 
+              </item>
+            </el>
+          </items>
+        </el>
+      </ROOT>
+    </sITEMS>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <mainhead>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.settings.mainhead</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>350</size>
+                <default>Deine persönliche To-do-Liste (Multi)</default>
+              </config>
+            </TCEforms>
+          </mainhead>
+          <description>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.settings.description</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </description>
+          <enable_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.settings.enable_print</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_print>
+          <enable_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.settings.enable_pdf</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_pdf>
+          <label_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_multi.settings.label_print</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Liste drucken</default>
+              </config>
+            </TCEforms>
+          </label_print>
+          <label_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist_todo_.settings.label_pdf</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>PDF speichern</default>
+              </config>
+            </TCEforms>
+          </label_pdf>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 221 - 0
Configuration/FlexForms/checklist-todo.xml

@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sITEMS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.items.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <items>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <item>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.items.title</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.items.text</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                  <contains_image>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.items.contains_image</label>
+                      <config>
+                        <type>check</type>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </contains_image>
+                </el>
+              </item>
+            </el>
+          </items>
+        </el>
+      </ROOT>
+    </sITEMS>
+    <sIMAGES>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.images.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <images>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.images.sheet_title</label>
+              <config>
+                <type>inline</type>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </images>
+        </el>
+      </ROOT>
+    </sIMAGES>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline_main>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.headline_main</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>350</size>
+                <default>Deine persönliche To-do-Liste</default>
+              </config>
+            </TCEforms>
+          </headline_main>
+          <headline_done>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.headline_done</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>350</size>
+                <default>Super, das hast du schon erledigt:</default>
+              </config>
+            </TCEforms>
+          </headline_done>
+          <headline_not_done>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.headline_not_done</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>350</size>
+                <default>Diese Punkte stehen noch auf deiner To-do-Liste:</default>
+              </config>
+            </TCEforms>
+          </headline_not_done>
+          <enable_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.enable_print</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_print>
+          <enable_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.enable_pdf</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_pdf>
+          <label_submit>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.label_submit</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Weiter</default>
+              </config>
+            </TCEforms>
+          </label_submit>
+          <label_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.label_print</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Liste drucken</default>
+              </config>
+            </TCEforms>
+          </label_print>
+          <label_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-todo.settings.label_pdf</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>PDF speichern</default>
+              </config>
+            </TCEforms>
+          </label_pdf>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 184 - 0
Configuration/FlexForms/checklist-yesmaybeno.xml

@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sITEMS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.items.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <items>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.items.title</title>
+                <el>
+                  <headline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.items.headline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </headline>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.items.text</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                </el>
+              </items>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sITEMS>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.sheet_title</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline_main>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.headline_main</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Was interessiert mich?</default>
+              </config>
+            </TCEforms>
+          </headline_main>
+          <intro>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.intro</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Schau dir die folgenden Interessensbereiche an und ordne sie entsprechend ein.</default>
+              </config>
+            </TCEforms>
+          </intro>
+          <headline_result>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.headline_result</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Deine Interessen im Überblick:</default>
+              </config>
+            </TCEforms>
+          </headline_result>
+          <enable_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.enable_print</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_print>
+          <enable_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.enable_pdf</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </enable_pdf>
+          <label_nextbutton>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.label_nextbutton</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Weiter</default>
+              </config>
+            </TCEforms>
+          </label_nextbutton>
+          <label_lastbutton>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.label_lastbutton</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Zur Auswertung</default>
+              </config>
+            </TCEforms>
+          </label_lastbutton>
+          <label_print>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.label_print</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Drucken</default>
+              </config>
+            </TCEforms>
+          </label_print>
+          <label_pdf>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.label_pdf</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>PDF speichern</default>
+              </config>
+            </TCEforms>
+          </label_pdf>
+          <choice_value_yes>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.choice_value_yes</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Das interessiert mich</default>
+              </config>
+            </TCEforms>
+          </choice_value_yes>
+          <choice_value_maybe>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.choice_value_maybe</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Das könnte mich interessieren</default>
+              </config>
+            </TCEforms>
+          </choice_value_maybe>
+          <choice_value_no>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_checklist-yesmaybeno.settings.choice_value_no</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+                <default>Das interessiert mich nicht</default>
+              </config>
+            </TCEforms>
+          </choice_value_no>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 90 - 0
Configuration/FlexForms/contentimage.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_contentimage.subtitle</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 260 - 0
Configuration/FlexForms/dynamictileoverview.xml

@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.sheetTitle.tiles</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <links>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                        <eval>required</eval>
+                        <fieldControl>
+                          <linkPopup>
+                            <options>
+                              <blindLinkFields>params,class</blindLinkFields>
+                              <blindLinkOptions>file,folder,mail,spec,telephone</blindLinkOptions>
+                            </options>
+                          </linkPopup>
+                        </fieldControl>
+                      </config>
+                    </TCEforms>
+                  </link>
+                  <type>
+                    <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.type</label>
+                    <config>
+                      <type>select</type>
+                      <renderType>selectSingle</renderType>
+                      <eval>required</eval>
+                      <items>
+                        <numIndex index="0">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.type.0</numIndex>
+                          <numIndex index="1">image+headline+text</numIndex>
+                        </numIndex>
+                        <numIndex index="1">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.type.1</numIndex>
+                          <numIndex index="1">headline</numIndex>
+                        </numIndex>
+                        <numIndex index="2">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.type.2</numIndex>
+                          <numIndex index="1">headline+text</numIndex>
+                        </numIndex>
+                        <numIndex index="3">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.type.3</numIndex>
+                          <numIndex index="1">image+headline</numIndex>
+                        </numIndex>
+                      </items>
+                      <default>image+headline+text</default>
+                    </config>
+                  </type>
+                  <format>
+                    <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.format</label>
+                    <config>
+                      <type>select</type>
+                      <renderType>selectSingle</renderType>
+                      <eval>required</eval>
+                      <items>
+                        <numIndex index="0">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.format.0</numIndex>
+                          <numIndex index="1">16_9</numIndex>
+                        </numIndex>
+                        <numIndex index="1">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.format.1</numIndex>
+                          <numIndex index="1">default</numIndex>
+                        </numIndex>
+                        <numIndex index="2">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.format.2</numIndex>
+                          <numIndex index="1">flat</numIndex>
+                        </numIndex>
+                      </items>
+                      <default>default</default>
+                    </config>
+                  </format>
+                  <coloured>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.link.coloured</label>
+                      <config>
+                        <type>check</type>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </coloured>
+                </el>
+              </links>
+
+              <flat>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.flat</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.flat</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                        <eval>required</eval>
+                        <fieldControl>
+                          <linkPopup>
+                            <options>
+                              <blindLinkFields>params,class</blindLinkFields>
+                              <blindLinkOptions>file,folder,mail,spec,telephone</blindLinkOptions>
+                            </options>
+                          </linkPopup>
+                        </fieldControl>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </flat>
+
+              <buttons>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.buttons</title>
+                <el>
+                  <headline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.buttons.headline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </headline>
+                  <buttons>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.buttons.links</label>
+                      <config>
+                        <type>text</type>
+                        <eval>required,trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE_ul_only</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </buttons>
+                </el>
+              </buttons>
+
+              <icons>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                        <eval>required</eval>
+                        <fieldControl>
+                          <linkPopup>
+                            <options>
+                              <blindLinkFields>params,class</blindLinkFields>
+                              <blindLinkOptions>file,folder,mail,spec,telephone</blindLinkOptions>
+                            </options>
+                          </linkPopup>
+                        </fieldControl>
+                      </config>
+                    </TCEforms>
+                  </link>
+                  <icon>
+                    <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon</label>
+                    <config>
+                      <type>select</type>
+                      <renderType>selectSingle</renderType>
+                      <eval>required</eval>
+                      <items>
+                        <numIndex index="0">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.0</numIndex>
+                          <numIndex index="1">career-track</numIndex>
+                        </numIndex>
+                        <numIndex index="1">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.1</numIndex>
+                          <numIndex index="1">company</numIndex>
+                        </numIndex>
+                        <numIndex index="2">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.2</numIndex>
+                          <numIndex index="1">diploma</numIndex>
+                        </numIndex>
+                        <numIndex index="3">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.3</numIndex>
+                          <numIndex index="1">writing</numIndex>
+                        </numIndex>
+                        <numIndex index="4">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.4</numIndex>
+                          <numIndex index="1">todo3</numIndex>
+                        </numIndex>
+                        <numIndex index="5">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.5</numIndex>
+                          <numIndex index="1">comeback</numIndex>
+                        </numIndex>
+                        <numIndex index="6">
+                          <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.icons.icon.6</numIndex>
+                          <numIndex index="1">work</numIndex>
+                        </numIndex>
+                      </items>
+                      <default>career-track</default>
+                    </config>
+                  </icon>
+                </el>
+              </icons>
+
+              <injections>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.injections</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.injections</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>200</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                </el>
+              </injections>
+            </el>
+
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sSETTINGS>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.sheetTitle.settings</sheetTitle>
+        <type>array</type>
+        <el>
+          <cssClass>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_dynamic_tileoverview.settings.css</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </cssClass>
+        </el>
+      </ROOT>
+    </sSETTINGS>
+  </sheets>
+</T3DataStructure>

+ 795 - 0
Configuration/FlexForms/explorerbox.xml

@@ -0,0 +1,795 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element1</sheetTitle>
+        <type>array</type>
+        <el>
+          <head1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head1>
+          <claim1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim1>
+          <text1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text1>
+          <image1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sDEF2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element2</sheetTitle>
+        <type>array</type>
+        <el>
+          <head2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head2>
+          <claim2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim2>
+          <text2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text2>
+          <link2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>folder,mail,spec,telephone</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </link2>
+          <image2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2>
+        </el>
+      </ROOT>
+    </sDEF2>
+    <sDEF3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element3</sheetTitle>
+        <type>array</type>
+        <el>
+          <head3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head3>
+          <claim3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim3>
+          <text3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text3>
+          <link3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>folder,mail,spec,telephone</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </link3>
+          <image3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3>
+        </el>
+      </ROOT>
+    </sDEF3>
+    <sDEF4>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element4</sheetTitle>
+        <type>array</type>
+        <el>
+          <head4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head4>
+          <claim4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim4>
+          <text4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text4>
+          <link4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>folder,mail,spec,telephone</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </link4>
+          <image4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_4</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image4>
+        </el>
+      </ROOT>
+    </sDEF4>
+    <sDEF5>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element5</sheetTitle>
+        <type>array</type>
+        <el>
+          <head5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head5>
+          <claim5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim5>
+          <text5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text5>
+          <link5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>folder,mail,spec,telephone</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </link5>
+          <image5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_5</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image5>
+        </el>
+      </ROOT>
+    </sDEF5>
+    <sDEF6>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.explore_element6</sheetTitle>
+        <type>array</type>
+        <el>
+          <head6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.headline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </head6>
+          <claim6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.subheadline</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>1</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </claim6>
+          <text6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.text</label>
+              <config>
+                <type>text</type>
+                <eval>trim</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text6>
+          <link6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>folder,mail,spec,telephone</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </link6>
+          <image6>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_explorerbox.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_6</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image6>
+        </el>
+      </ROOT>
+    </sDEF6>
+  </sheets>
+</T3DataStructure>

+ 205 - 0
Configuration/FlexForms/extra-infosbox.xml

@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.box>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.box</title>
+                <el>
+                  <boxheadline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxheadline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </boxheadline>
+                  <boxtext>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxtext</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </boxtext>
+                </el>
+              </settings.box>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_extra_infosbox.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_extra_infosbox.mainheadline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Weitere Informationen</default>
+              </config>
+            </TCEforms>
+          </headline>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.contentimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.0</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.1</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.2</numIndex>
+                  <numIndex index="1">2</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.3</numIndex>
+                  <numIndex index="1">3</numIndex>
+                </numIndex>
+                <numIndex index="4">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.4</numIndex>
+                  <numIndex index="1">4</numIndex>
+                </numIndex>
+                <numIndex index="5">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.5</numIndex>
+                  <numIndex index="1">5</numIndex>
+                </numIndex>
+                <numIndex index="6">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.6</numIndex>
+                  <numIndex index="1">6</numIndex>
+                </numIndex>
+                <numIndex index="7">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.7</numIndex>
+                  <numIndex index="1">7</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </icon>
+          <isInitialyOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.isInitialyOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isInitialyOpen>
+          <noAutoOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.noAutoOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </noAutoOpen>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 626 - 0
Configuration/FlexForms/fahrplan.xml

@@ -0,0 +1,626 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sELEMENT1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element1</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT1>
+    <sELEMENT2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element2</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT2>
+    <sELEMENT3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element3</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT3>
+    <sELEMENT4>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element4</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT4>
+    <sELEMENT5>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element5</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT5>
+    <sELEMENT6>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.element6</sheetTitle>
+        <type>array</type>
+        <el>
+          <caption>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementcaption</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </caption>
+          <link>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementlink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.elementimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sELEMENT6>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_fahrplan.default_elements</sheetTitle>
+        <type>array</type>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 226 - 0
Configuration/FlexForms/foldout-h3.xml

@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.paragraph>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.paragraph</title>
+                <el>
+                  <paragraph>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.paragraph</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </paragraph>
+                </el>
+              </settings.paragraph>
+              <settings.headline>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.headline</title>
+                <el>
+                  <headline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.headline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </headline>
+                </el>
+              </settings.headline>
+              <settings.html>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.html</title>
+                <el>
+                  <html>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.html</label>
+                      <config>
+                        <type>text</type>
+                        <cols>250</cols>
+                        <rows>15</rows>
+                      </config>
+                    </TCEforms>
+                  </html>
+                </el>
+              </settings.html>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </headline>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.contentimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.0</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.1</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.2</numIndex>
+                  <numIndex index="1">2</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.3</numIndex>
+                  <numIndex index="1">3</numIndex>
+                </numIndex>
+                <numIndex index="4">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.4</numIndex>
+                  <numIndex index="1">4</numIndex>
+                </numIndex>
+                <numIndex index="5">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.5</numIndex>
+                  <numIndex index="1">5</numIndex>
+                </numIndex>
+                <numIndex index="6">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.6</numIndex>
+                  <numIndex index="1">6</numIndex>
+                </numIndex>
+                <numIndex index="7">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.icon.7</numIndex>
+                  <numIndex index="1">7</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </icon>
+          <isInitialyOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout_h3.isInitialyOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isInitialyOpen>
+          <noAutoOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.noAutoOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </noAutoOpen>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 226 - 0
Configuration/FlexForms/foldout.xml

@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.paragraph>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.paragraph</title>
+                <el>
+                  <paragraph>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.paragraph</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </paragraph>
+                </el>
+              </settings.paragraph>
+              <settings.headline>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.headline</title>
+                <el>
+                  <headline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.headline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </headline>
+                </el>
+              </settings.headline>
+              <settings.html>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.html</title>
+                <el>
+                  <html>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.html</label>
+                      <config>
+                        <type>text</type>
+                        <cols>250</cols>
+                        <rows>15</rows>
+                      </config>
+                    </TCEforms>
+                  </html>
+                </el>
+              </settings.html>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </headline>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.contentimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.0</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.1</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.2</numIndex>
+                  <numIndex index="1">2</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.3</numIndex>
+                  <numIndex index="1">3</numIndex>
+                </numIndex>
+                <numIndex index="4">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.4</numIndex>
+                  <numIndex index="1">4</numIndex>
+                </numIndex>
+                <numIndex index="5">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.5</numIndex>
+                  <numIndex index="1">5</numIndex>
+                </numIndex>
+                <numIndex index="6">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.6</numIndex>
+                  <numIndex index="1">6</numIndex>
+                </numIndex>
+                <numIndex index="7">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.icon.7</numIndex>
+                  <numIndex index="1">7</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </icon>
+          <isInitialyOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_foldout.isInitialyOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isInitialyOpen>
+          <noAutoOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.noAutoOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </noAutoOpen>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 25 - 0
Configuration/FlexForms/headline1.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_h1.subtitle</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 25 - 0
Configuration/FlexForms/headline2.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_h2.subtitle</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 25 - 0
Configuration/FlexForms/headline3.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_h3.subtitle</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 90 - 0
Configuration/FlexForms/heroimage.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_heroimage.subtitle</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 46 - 0
Configuration/FlexForms/highlightbox.xml

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_highlightbox.subtitle</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+              </config>
+            </TCEforms>
+          </text>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_highlightbox.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_highlightbox.icon.0</numIndex>
+                  <numIndex index="1">lightbulb</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_highlightbox.icon.1</numIndex>
+                  <numIndex index="1">warning</numIndex>
+                </numIndex>
+              </items>
+              <default>lightbulb</default>
+            </config>
+          </icon>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 413 - 0
Configuration/FlexForms/homeheaderinfo.xml

@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.sheet_element1</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>35</maxlength>
+              </config>
+            </TCEforms>
+          </headline1>
+          <text1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.text</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>120</maxlength>
+              </config>
+            </TCEforms>
+          </text1>
+          <link1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link1>
+          <image1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1>
+          <imagesize1>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_1_1</numIndex>
+                  <numIndex index="1">i_1_1</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_16_9</numIndex>
+                  <numIndex index="1">i_16_9</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_default</numIndex>
+                  <numIndex index="1">default</numIndex>
+                </numIndex>
+              </items>
+              <default>i_1_1</default>
+            </config>
+          </imagesize1>
+        </el>
+      </ROOT>
+    </sDEF1>
+    <sDEF2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.sheet_element2</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>35</maxlength>
+              </config>
+            </TCEforms>
+          </headline2>
+          <text2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.text</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>120</maxlength>
+              </config>
+            </TCEforms>
+          </text2>
+          <link2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link2>
+          <image2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2>
+          <imagesize2>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_1_1</numIndex>
+                  <numIndex index="1">i_1_1</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_16_9</numIndex>
+                  <numIndex index="1">i_16_9</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_default</numIndex>
+                  <numIndex index="1">default</numIndex>
+                </numIndex>
+              </items>
+              <default>i_1_1</default>
+            </config>
+          </imagesize2>
+        </el>
+      </ROOT>
+    </sDEF2>
+    <sDEF3>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.sheet_element3</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>35</maxlength>
+              </config>
+            </TCEforms>
+          </headline3>
+          <text3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.text</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <maxlength>120</maxlength>
+              </config>
+            </TCEforms>
+          </text3>
+          <link3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+              </config>
+            </TCEforms>
+          </link3>
+          <image3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>0</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3>
+          <imagesize3>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_1_1</numIndex>
+                  <numIndex index="1">i_1_1</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_16_9</numIndex>
+                  <numIndex index="1">i_16_9</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_homeheaderinfo.imagesize.i_default</numIndex>
+                  <numIndex index="1">default</numIndex>
+                </numIndex>
+              </items>
+              <default>i_1_1</default>
+            </config>
+          </imagesize3>
+        </el>
+      </ROOT>
+    </sDEF3>
+  </sheets>
+</T3DataStructure>

+ 25 - 0
Configuration/FlexForms/html.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <html>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_html.html</label>
+              <config>
+                <type>text</type>
+                <cols>250</cols>
+                <rows>15</rows>
+              </config>
+            </TCEforms>
+          </html>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 131 - 0
Configuration/FlexForms/imageplus.xml

@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+	<meta>
+		<langDisable>1</langDisable>
+	</meta>
+	<sheets>
+		<sDEF>
+			<ROOT>
+				<type>array</type>
+				<el>
+					<image>
+						<TCEforms>
+							<label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_imageplus.subtitle</label>
+							<config>
+								<type>inline</type>
+								<maxitems>1</maxitems>
+								<foreign_table>sys_file_reference</foreign_table>
+								<foreign_table_field>tablenames</foreign_table_field>
+								<foreign_label>uid_local</foreign_label>
+								<foreign_sortby>sorting_foreign</foreign_sortby>
+								<foreign_field>uid_foreign</foreign_field>
+								<foreign_selector>uid_local</foreign_selector>
+								<foreign_selector_fieldTcaOverride>
+									<config>
+										<appearance>
+											<elementBrowserType>file</elementBrowserType>
+											<elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+										</appearance>
+									</config>
+								</foreign_selector_fieldTcaOverride>
+								<foreign_types type="array">
+									<numIndex index="0">
+										<showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+									</numIndex>
+									<numIndex index="2">
+										<showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+									</numIndex>
+								</foreign_types>
+								<foreign_match_fields>
+									<fieldname>image</fieldname>
+									<!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+								</foreign_match_fields>
+								<appearance type="array">
+									<fileUploadAllowed>0</fileUploadAllowed>
+									<newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+									<headerThumbnail>
+										<field>uid_local</field>
+										<height>64</height>
+										<width>64</width>
+									</headerThumbnail>
+									<enabledControls>
+										<info>1</info>
+										<new>0</new>
+										<dragdrop>0</dragdrop>
+										<sort>1</sort>
+										<hide>0</hide>
+										<delete>1</delete>
+										<localize>0</localize>
+									</enabledControls>
+									<createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+								</appearance>
+								<behaviour>
+									<localizationMode>select</localizationMode>
+									<localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+								</behaviour>
+								<overrideChildTca>
+									<columns type="array">
+										<uid_local type="array">
+											<config type="array">
+												<appearance type="array">
+													<elementBrowserType>file</elementBrowserType>
+													<elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+												</appearance>
+											</config>
+										</uid_local>
+									</columns>
+									<types type="array">
+										<numIndex index="2">
+											<showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+										</numIndex>
+									</types>
+								</overrideChildTca>
+							</config>
+						</TCEforms>
+					</image>
+					<headline>
+						<TCEforms>
+							<label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_imageplus.headline</label>
+							<config>
+								<type>input</type>
+								<eval>trim</eval>
+								<size>200</size>
+							</config>
+						</TCEforms>
+					</headline>
+					<description>
+						<TCEforms>
+							<label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_imageplus.description</label>
+							<config>
+								<type>text</type>
+								<eval>trim</eval>
+								<rows>4</rows>
+								<cols>200</cols>
+							</config>
+						</TCEforms>
+					</description>
+					<link>
+						<TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_imageplus.link</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <eval>required</eval>
+              </config>
+            </TCEforms>
+          </link>
+					<customcss>
+						<TCEforms>
+							<label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_imageplus.customcss</label>
+							<config>
+								<type>input</type>
+								<eval>trim</eval>
+								<size>200</size>
+							</config>
+						</TCEforms>
+					</customcss>
+				</el>
+			</ROOT>
+		</sDEF>
+	</sheets>
+</T3DataStructure>

+ 255 - 0
Configuration/FlexForms/infobox.xml

@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.boxtext>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxtext</title>
+                <el>
+                  <boxtext>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxtext</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </boxtext>
+                </el>
+              </settings.boxtext>
+              <settings.boxheadline>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxheadline</title>
+                <el>
+                  <boxheadline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxheadline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </boxheadline>
+                </el>
+              </settings.boxheadline>
+              <settings.box>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.box</title>
+                <el>
+                  <boxheadline>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxheadline</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>250</size>
+                      </config>
+                    </TCEforms>
+                  </boxheadline>
+                  <boxtext>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.boxtext</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>3</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </boxtext>
+                </el>
+              </settings.box>
+              <settings.html>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.html</title>
+                <el>
+                  <html>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.html</label>
+                      <config>
+                        <type>text</type>
+                        <cols>250</cols>
+                        <rows>15</rows>
+                      </config>
+                    </TCEforms>
+                  </html>
+                </el>
+              </settings.html>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.mainheadline</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </headline>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.contentimage</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <icon>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.0</numIndex>
+                  <numIndex index="1">0</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.1</numIndex>
+                  <numIndex index="1">1</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.2</numIndex>
+                  <numIndex index="1">2</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.3</numIndex>
+                  <numIndex index="1">3</numIndex>
+                </numIndex>
+                <numIndex index="4">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.4</numIndex>
+                  <numIndex index="1">4</numIndex>
+                </numIndex>
+                <numIndex index="5">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.5</numIndex>
+                  <numIndex index="1">5</numIndex>
+                </numIndex>
+                <numIndex index="6">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.6</numIndex>
+                  <numIndex index="1">6</numIndex>
+                </numIndex>
+                <numIndex index="7">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.icon.7</numIndex>
+                  <numIndex index="1">7</numIndex>
+                </numIndex>
+              </items>
+              <default>0</default>
+            </config>
+          </icon>
+          <isInitialyOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.isInitialyOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isInitialyOpen>
+          <noAutoOpen>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_infobox.noAutoOpen</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </noAutoOpen>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 25 - 0
Configuration/FlexForms/injection.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_injection.subtitle</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 46 - 0
Configuration/FlexForms/interviewantwort.xml

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <interviewee>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_interviewantwort.interviewee</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </interviewee>
+          <answer>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_interviewantwort.answer</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </answer>
+          <lang>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_interviewantwort.lang</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </lang>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 35 - 0
Configuration/FlexForms/interviewfrage.xml

@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <question>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_interviewfrage.question</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </question>
+          <lang>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_interviewfrage.lang</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </lang>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 26 - 0
Configuration/FlexForms/introtext.xml

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_introtext.subtitle</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 235 - 0
Configuration/FlexForms/linkage.xml

@@ -0,0 +1,235 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sBERUFENET>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.berufenet</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponentsBerufeNet>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponentsBerufeNet>
+        </el>
+      </ROOT>
+    </sBERUFENET>
+    <sBERUFETV>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.berufetv</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponentsBerufeTV>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponentsBerufeTV>
+        </el>
+      </ROOT>
+    </sBERUFETV>
+    <Berufsausbildung>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.berufsausbildung</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponentsBerufsausbildung>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponentsBerufsausbildung>
+        </el>
+      </ROOT>
+    </Berufsausbildung>
+    <sBASEARCH>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.ba_search</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponentsBASearch>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponentsBASearch>
+        </el>
+      </ROOT>
+    </sBASEARCH>
+    <sSTUDIENWAHL>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.studienwahl</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponentsStudienwahl>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.link>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </settings.link>
+            </el>
+          </dynamicComponentsStudienwahl>
+        </el>
+      </ROOT>
+    </sSTUDIENWAHL>
+    <sCHECKU>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.check_u</sheetTitle>
+        <type>array</type>
+        <el>
+          <enable_check_u>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.check_u.set_link</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </enable_check_u>
+        </el>
+      </ROOT>
+    </sCHECKU>
+    <sSTUDIENCHECK>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.studiencheck</sheetTitle>
+        <type>array</type>
+        <el>
+          <enable_studiencheck>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.studiencheck.set_link</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </enable_studiencheck>
+        </el>
+      </ROOT>
+    </sSTUDIENCHECK>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_linkage.mainheadline</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Weitere Beiträge</default>
+              </config>
+            </TCEforms>
+          </headline>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 50 - 0
Configuration/FlexForms/maintenance.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+    <meta>
+        <langDisable>1</langDisable>
+    </meta>
+    <sheets>
+        <sDEF>
+            <ROOT>
+                <type>array</type>
+                <el>
+                    <starttime>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_maintenance.starttime</label>
+                            <config>
+                                <type>input</type>
+                                <renderType>inputDateTime</renderType>
+                                <eval>datetime</eval>
+                                <default>0</default>
+                            </config>
+                        </TCEforms>
+                    </starttime>
+                    <endtime>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_maintenance.endtime</label>
+                            <config>
+                                <type>input</type>
+                                <renderType>inputDateTime</renderType>
+                                <eval>datetime</eval>
+                                <default>0</default>
+                            </config>
+                        </TCEforms>
+                    </endtime>
+                    <infotext>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_maintenance.infotext</label>
+                            <config>
+                                <type>text</type>
+                                <eval>trim,required</eval>
+                                <rows>5</rows>
+                                <cols>200</cols>
+                                <enableRichtext>true</enableRichtext>
+                                <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                            </config>
+                        </TCEforms>
+                    </infotext>
+                </el>
+            </ROOT>
+        </sDEF>
+    </sheets>
+</T3DataStructure>

+ 83 - 0
Configuration/FlexForms/menu.xml

@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF1>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.sheetTitle</sheetTitle>
+        <type>array</type>
+        <el>
+          <mid>
+            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.id</label>
+            <config>
+              <type>select</type>
+              <renderType>selectSingle</renderType>
+              <eval>required</eval>
+              <items>
+                <numIndex index="0">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.id.0</numIndex>
+                  <numIndex index="1">main</numIndex>
+                </numIndex>
+                <numIndex index="1">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.id.1</numIndex>
+                  <numIndex index="1">footer</numIndex>
+                </numIndex>
+                <numIndex index="2">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.id.2</numIndex>
+                  <numIndex index="1">access</numIndex>
+                </numIndex>
+                <numIndex index="3">
+                  <numIndex index="0">LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.id.3</numIndex>
+                  <numIndex index="1">direct</numIndex>
+                </numIndex>
+              </items>
+              <default>main</default>
+            </config>
+          </mid>
+          <headline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.headline</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </headline>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <links>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.link</title>
+                <el>
+                  <link>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_menu.link</label>
+                      <config>
+                        <type>input</type>
+                        <renderType>inputLink</renderType>
+                        <eval>required</eval>
+                        <fieldControl>
+                          <linkPopup>
+                            <options>
+                              <blindLinkFields>params,class</blindLinkFields>
+                              <blindLinkOptions>file,folder,mail,spec,telephone</blindLinkOptions>
+                            </options>
+                          </linkPopup>
+                        </fieldControl>
+                      </config>
+                    </TCEforms>
+                  </link>
+                </el>
+              </links>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDEF1>
+  </sheets>
+</T3DataStructure>

+ 43 - 0
Configuration/FlexForms/movingimagesvideo.xml

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <vid>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_movingimagesvideo.vid</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </vid>
+          <hasNoticeForCrossPromotion>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_movingimagesvideo.hasNoticeForCrossPromotion</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </hasNoticeForCrossPromotion>
+          <hasNoticeForAccessibility>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_movingimagesvideo.hasNoticeForAccessibility</label>
+              <config>
+                <type>check</type>
+                <default>1</default>
+              </config>
+            </TCEforms>
+          </hasNoticeForAccessibility>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 38 - 0
Configuration/FlexForms/newsletterabo.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <cr_url>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_newsletterabo.cr_url</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </cr_url>
+          <cr_url_BIZ>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_newsletterabo.cr_url_BIZ</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+              </config>
+            </TCEforms>
+          </cr_url_BIZ>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>
+
+
+

+ 28 - 0
Configuration/FlexForms/paragraph.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <text>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_paragraph.subtitle</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+              </config>
+            </TCEforms>
+          </text>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 1467 - 0
Configuration/FlexForms/picturechoice.xml

@@ -0,0 +1,1467 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sPic1>
+      <ROOT>
+        <type>array</type>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.choice1_title</sheetTitle>
+        <el>
+          <image1_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image1</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1_1>
+          <pointsOfImage1_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage1</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage1_1>
+          <image1_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image2</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1_2>
+          <pointsOfImage1_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage2</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage1_2>
+          <image1_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image3</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1_3>
+          <pointsOfImage1_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage3</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage1_3>
+          <image1_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image4</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1_4</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1_4>
+          <pointsOfImage1_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage4</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage1_4>
+          <image1_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image5</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_1_5</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image1_5>
+          <pointsOfImage1_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage5</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage1_5>
+        </el>
+      </ROOT>
+    </sPic1>
+    <sPic2>
+      <ROOT>
+        <type>array</type>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.choice2_title</sheetTitle>
+        <el>
+          <image2_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image1</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2_1>
+          <pointsOfImage2_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage1</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage2_1>
+          <image2_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image2</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2_2>
+          <pointsOfImage2_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage2</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage2_2>
+          <image2_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image3</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2_3>
+          <pointsOfImage2_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage3</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage2_3>
+          <image2_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image4</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2_4</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2_4>
+          <pointsOfImage2_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage4</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage2_4>
+          <image2_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image5</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_2_5</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image2_5>
+          <pointsOfImage2_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage5</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage2_5>
+        </el>
+      </ROOT>
+    </sPic2>
+    <sPic3>
+      <ROOT>
+        <type>array</type>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.choice3_title</sheetTitle>
+        <el>
+          <image3_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image1</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3_1</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3_1>
+          <pointsOfImage3_1>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage1</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage3_1>
+          <image3_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image2</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3_2</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3_2>
+          <pointsOfImage3_2>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage2</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage3_2>
+          <image3_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image3</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3_3</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3_3>
+          <pointsOfImage3_3>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage3</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage3_3>
+          <image3_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image4</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3_4</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3_4>
+          <pointsOfImage3_4>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage4</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage3_4>
+          <image3_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.image5</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>flex_image_3_5</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image3_5>
+          <pointsOfImage3_5>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.pointsOfImage5</label>
+              <config>
+                <type>input</type>
+                <eval>trim,int</eval>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </pointsOfImage3_5>
+        </el>
+      </ROOT>
+    </sPic3>
+    <sVALIDATION>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.title</sheetTitle>
+        <type>array</type>
+        <el>
+          <validations>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.validation>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.title</title>
+                <el>
+                  <pointsFrom>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.points_from</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsFrom>
+                  <pointsTo>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.points_to</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsTo>
+                  <validationText>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.text</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim,required</eval>
+                        <rows>5</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </validationText>
+                </el>
+              </settings.validation>
+            </el>
+          </validations>
+        </el>
+      </ROOT>
+    </sVALIDATION>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <startbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.startbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Start</default>
+              </config>
+            </TCEforms>
+          </startbuttontext>
+          <nextbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.nextbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Nächste Frage</default>
+              </config>
+            </TCEforms>
+          </nextbuttontext>
+          <lastbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.lastbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Zur Auswertung</default>
+              </config>
+            </TCEforms>
+          </lastbuttontext>
+          <repeatbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.repeatbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Nochmal versuchen</default>
+              </config>
+            </TCEforms>
+          </repeatbuttontext>
+          <question>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.question</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Frage</default>
+              </config>
+            </TCEforms>
+          </question>
+          <resultheadingtop>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.resultheadingtop</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Auflösung:</default>
+              </config>
+            </TCEforms>
+          </resultheadingtop>
+          <maxpoints>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.validation.maxpoints</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </maxpoints>
+          <thanks>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.thanks</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Vielen Dank für deine Teilnahme!</default>
+              </config>
+            </TCEforms>
+          </thanks>
+          <isRestartAble>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_picturechoice.isRestartAble</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isRestartAble>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 99 - 0
Configuration/FlexForms/podcast.xml

@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <media>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_podcast.subtitle</label>
+               <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>mp3</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>media</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media.addFileReference</createNewRelationLinkTitle>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:media.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>mp3</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </media>
+          <transcript>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_podcast.transcript</label>
+              <config>
+                <type>text</type>
+                <eval>trim,required</eval>
+                <rows>5</rows>
+                <cols>200</cols>
+                <enableRichtext>true</enableRichtext>
+                <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+              </config>
+            </TCEforms>
+          </transcript>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 90 - 0
Configuration/FlexForms/postimage.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_postimage.subtitle</label>
+              <config>
+                <type>inline</type>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 188 - 0
Configuration/FlexForms/publication.xml

@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.image</label>
+              <config>
+                <type>inline</type>
+                <minitems>1</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+          <pdflink>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.pdflink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <eval>required</eval>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>page,folder,mail,spec,telephone,url</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </pdflink>
+          <htmllink>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.htmllink</label>
+              <config>
+                <type>input</type>
+                <renderType>inputLink</renderType>
+                <fieldControl>
+                  <linkPopup>
+                    <options>
+                      <blindLinkFields>params,class</blindLinkFields>
+                      <blindLinkOptions>file,folder,mail,spec,telephone,url</blindLinkOptions>
+                    </options>
+                  </linkPopup>
+                </fieldControl>
+              </config>
+            </TCEforms>
+          </htmllink>
+          <issuekey>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.issuekey</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </issuekey>
+          <issuenumber>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.issuenumber</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </issuenumber>
+          <issuetitle>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.issuetitle</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </issuetitle>
+          <issueheadline>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.issueheadline</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required</eval>
+                <size>200</size>
+              </config>
+            </TCEforms>
+          </issueheadline>
+          <starttime>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.starttime</label>
+              <config>
+                <type>input</type>
+                <renderType>inputDateTime</renderType>
+                <size>8</size>
+                <eval>date,required</eval>
+              </config>
+            </TCEforms>
+          </starttime>
+          <endtime>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_publication.endtime</label>
+              <config>
+                <type>input</type>
+                <renderType>inputDateTime</renderType>
+                <size>8</size>
+                <eval>date,required</eval>
+              </config>
+            </TCEforms>
+          </endtime>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 367 - 0
Configuration/FlexForms/quiz.xml

@@ -0,0 +1,367 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.question>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.question_single</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.question</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                  <answertext1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext1>
+                  <answerpoints1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints1>
+                  <answertext2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext2>
+                  <answerpoints2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints2>
+                  <answertext3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext3>
+                  <answerpoints3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints3>
+                </el>
+              </settings.question>
+              <settings.question_multi>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.question_multi</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.question</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                  <additional_text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.question_multi_additional</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                        <default>Bei dieser Frage sind mehrere Antworten möglich</default>
+                      </config>
+                    </TCEforms>
+                  </additional_text>
+                  <answertext1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext1>
+                  <answerpoints1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints1>
+                  <answertext2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext2>
+                  <answerpoints2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints2>
+                  <answertext3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answertext3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext3>
+                  <answerpoints3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.answers.answerpoints3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints3>
+                </el>
+              </settings.question_multi>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDYNAMIC2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.dynamic_elements2</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents2>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.validation>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validation</title>
+                <el>
+                  <pointsFrom>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validation.points_from</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsFrom>
+                  <pointsTo>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validation.points_to</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsTo>
+                  <validationText>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validation.text</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim,required</eval>
+                        <rows>5</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </validationText>
+                </el>
+              </settings.validation>
+            </el>
+          </dynamicComponents2>
+        </el>
+      </ROOT>
+    </sDYNAMIC2>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <startbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.startbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Start</default>
+              </config>
+            </TCEforms>
+          </startbuttontext>
+          <nextbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.nextbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Nächste Frage</default>
+              </config>
+            </TCEforms>
+          </nextbuttontext>
+          <lastbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.lastbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Zur Auswertung</default>
+              </config>
+            </TCEforms>
+          </lastbuttontext>
+          <repeatbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.repeatbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Noch mal versuchen</default>
+              </config>
+            </TCEforms>
+          </repeatbuttontext>
+          <question>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.questiontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Frage</default>
+              </config>
+            </TCEforms>
+          </question>
+          <resultheadingtop>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.resultheadingtop</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Dein Ergebnis</default>
+              </config>
+            </TCEforms>
+          </resultheadingtop>
+          <resultheadingsub>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.resultheadingsub</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Auflösung:</default>
+              </config>
+            </TCEforms>
+          </resultheadingsub>
+          <validationstr>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validationstr</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Du hast &lt;POINTS&gt; von &lt;MAXPOINTS&gt; Punkten erreicht. Durchschnittlich haben die Teilnehmer*innen bei dieser Aufgabe &lt;AVRGPOINTS&gt; Punkte erzielt.</default>
+              </config>
+            </TCEforms>
+          </validationstr>
+          <maxpoints>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.validation.maxpoints</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </maxpoints>
+          <thanks>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.thanks</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Vielen Dank für deine Teilnahme!</default>
+              </config>
+            </TCEforms>
+          </thanks>
+          <isRestartAble>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz.isRestartAble</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isRestartAble>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 413 - 0
Configuration/FlexForms/quizdirect.xml

@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDYNAMIC>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.dynamic_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.question>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.question_single</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.question</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                  <answertext1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext1>
+                  <answerpoints1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints1>
+                  <answertext2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext2>
+                  <answerpoints2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints2>
+                  <answertext3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext3>
+                  <answerpoints3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints3>
+                  <solutionText>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.solution.text</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim,required</eval>
+                        <rows>5</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </solutionText>
+                </el>
+              </settings.question>
+              <settings.question_multi>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.question_multi</title>
+                <el>
+                  <text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.question</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </text>
+                  <additional_text>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.question_multi_additional</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required</eval>
+                        <size>500</size>
+                        <default>Bei dieser Frage sind mehrere Antworten möglich</default>
+                      </config>
+                    </TCEforms>
+                  </additional_text>
+                  <answertext1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext1>
+                  <answerpoints1>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints1</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints1>
+                  <answertext2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext2>
+                  <answerpoints2>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints2</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints2>
+                  <answertext3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answertext3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answertext3>
+                  <answerpoints3>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.answers.answerpoints3</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,int</eval>
+                        <size>500</size>
+                      </config>
+                    </TCEforms>
+                  </answerpoints3>
+                </el>
+              </settings.question_multi>
+            </el>
+          </dynamicComponents>
+        </el>
+      </ROOT>
+    </sDYNAMIC>
+    <sDYNAMIC2>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.dynamic_elements2</sheetTitle>
+        <type>array</type>
+        <el>
+          <dynamicComponents2>
+            <type>array</type>
+            <section>1</section>
+            <el>
+              <settings.validation>
+                <type>array</type>
+                <title>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validation</title>
+                <el>
+                  <pointsFrom>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validation.points_from</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsFrom>
+                  <pointsTo>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validation.points_to</label>
+                      <config>
+                        <type>input</type>
+                        <eval>trim,required,int</eval>
+                        <size>10</size>
+                        <default>0</default>
+                      </config>
+                    </TCEforms>
+                  </pointsTo>
+                  <validationText>
+                    <TCEforms>
+                      <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validation.text</label>
+                      <config>
+                        <type>text</type>
+                        <eval>trim</eval>
+                        <rows>5</rows>
+                        <cols>200</cols>
+                        <enableRichtext>true</enableRichtext>
+                        <richtextConfiguration>mrm_be_cm_RTE</richtextConfiguration>
+                      </config>
+                    </TCEforms>
+                  </validationText>
+                </el>
+              </settings.validation>
+            </el>
+          </dynamicComponents2>
+        </el>
+      </ROOT>
+    </sDYNAMIC2>
+    <sDEF>
+      <ROOT>
+        <sheetTitle>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.default_elements</sheetTitle>
+        <type>array</type>
+        <el>
+          <startbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.startbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Start</default>
+              </config>
+            </TCEforms>
+          </startbuttontext>
+          <submitbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.submitbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>OK</default>
+              </config>
+            </TCEforms>
+          </submitbuttontext>
+          <nextbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.nextbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Nächste Frage</default>
+              </config>
+            </TCEforms>
+          </nextbuttontext>
+          <lastbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.lastbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Zur Auswertung</default>
+              </config>
+            </TCEforms>
+          </lastbuttontext>
+          <repeatbuttontext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.repeatbuttontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Noch mal versuchen</default>
+              </config>
+            </TCEforms>
+          </repeatbuttontext>
+          <question>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.questiontext</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Frage</default>
+              </config>
+            </TCEforms>
+          </question>
+          <questionsuccesstext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.questionsuccess.text</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Richtig!</default>
+              </config>
+            </TCEforms>
+          </questionsuccesstext>
+          <questionfailtext>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.questionfail.text</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Das war leider nicht korrekt. Richtig wäre gewesen:</default>
+              </config>
+            </TCEforms>
+          </questionfailtext>
+          <resultheadingtop>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.resultheadingtop</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Dein Ergebnis</default>
+              </config>
+            </TCEforms>
+          </resultheadingtop>
+          <resultheadingsub>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.resultheadingsub</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Bewertung:</default>
+              </config>
+            </TCEforms>
+          </resultheadingsub>
+          <validationstr>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validationstr</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Du hast &lt;POINTS&gt; von &lt;MAXPOINTS&gt; Punkten erreicht. Durchschnittlich haben die Teilnehmer*innen bei dieser Aufgabe &lt;AVRGPOINTS&gt; Punkte erzielt.</default>
+              </config>
+            </TCEforms>
+          </validationstr>
+          <maxpoints>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.validation.maxpoints</label>
+              <config>
+                <type>input</type>
+                <eval>trim,required,int</eval>
+                <size>10</size>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </maxpoints>
+          <thanks>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.thanks</label>
+              <config>
+                <type>input</type>
+                <eval>trim</eval>
+                <size>250</size>
+                <default>Vielen Dank für deine Teilnahme!</default>
+              </config>
+            </TCEforms>
+          </thanks>
+          <isRestartAble>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_quiz_direct.isRestartAble</label>
+              <config>
+                <type>check</type>
+                <default>0</default>
+              </config>
+            </TCEforms>
+          </isRestartAble>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 92 - 0
Configuration/FlexForms/rawimage.xml

@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+  <meta>
+    <langDisable>1</langDisable>
+  </meta>
+  <sheets>
+    <sDEF>
+      <ROOT>
+        <type>array</type>
+        <el>
+          <image>
+            <TCEforms>
+              <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_rawimage.subtitle</label>
+              <config>
+                <type>inline</type>
+                <eval>required</eval>
+                <minitems>1</minitems>
+                <maxitems>1</maxitems>
+                <foreign_table>sys_file_reference</foreign_table>
+                <foreign_table_field>tablenames</foreign_table_field>
+                <foreign_label>uid_local</foreign_label>
+                <foreign_sortby>sorting_foreign</foreign_sortby>
+                <foreign_field>uid_foreign</foreign_field>
+                <foreign_selector>uid_local</foreign_selector>
+                <foreign_selector_fieldTcaOverride>
+                  <config>
+                    <appearance>
+                      <elementBrowserType>file</elementBrowserType>
+                      <elementBrowserAllowed>gif,jpg,jpeg,png,svg</elementBrowserAllowed>
+                    </appearance>
+                  </config>
+                </foreign_selector_fieldTcaOverride>
+                <foreign_types type="array">
+                  <numIndex index="0">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                  <numIndex index="2">
+                    <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem>
+                  </numIndex>
+                </foreign_types>
+                <foreign_match_fields>
+                  <fieldname>image</fieldname>
+                  <!-- CAUTION!! Replace "fal" with the variable name of this field! -->
+                </foreign_match_fields>
+                <appearance type="array">
+                  <fileUploadAllowed>0</fileUploadAllowed>
+                  <newRecordLinkAddTitle>1</newRecordLinkAddTitle>
+                  <headerThumbnail>
+                    <field>uid_local</field>
+                    <height>64</height>
+                    <width>64</width>
+                  </headerThumbnail>
+                  <enabledControls>
+                    <info>1</info>
+                    <new>0</new>
+                    <dragdrop>0</dragdrop>
+                    <sort>1</sort>
+                    <hide>0</hide>
+                    <delete>1</delete>
+                    <localize>0</localize>
+                  </enabledControls>
+                  <createNewRelationLinkTitle>LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
+                </appearance>
+                <behaviour>
+                  <localizationMode>select</localizationMode>
+                  <localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
+                </behaviour>
+                <overrideChildTca>
+                  <columns type="array">
+                    <uid_local type="array">
+                      <config type="array">
+                        <appearance type="array">
+                          <elementBrowserType>file</elementBrowserType>
+                          <elementBrowserAllowed>jpg,png,svg,jpeg,gif</elementBrowserAllowed>
+                        </appearance>
+                      </config>
+                    </uid_local>
+                  </columns>
+                  <types type="array">
+                    <numIndex index="2">
+                      <showitem>--palette--;;filePalette</showitem>
+                    </numIndex>
+                  </types>
+                </overrideChildTca>
+              </config>
+            </TCEforms>
+          </image>
+        </el>
+      </ROOT>
+    </sDEF>
+  </sheets>
+</T3DataStructure>

+ 56 - 0
Configuration/FlexForms/redirects.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3DataStructure>
+    <meta>
+        <langDisable>1</langDisable>
+    </meta>
+    <sheets>
+        <sDEF>
+            <ROOT>
+                <type>array</type>
+                <el>
+                    <source_path>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_redirects.source_path</label>
+                            <config>
+                                <type>input</type>
+                                <size>150</size>
+                                <max>200</max>
+                                <eval>trim,required</eval>
+                            </config>
+                        </TCEforms>
+                    </source_path>
+                    <target>
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_redirects.target</label>
+                            <config>
+                                <type>input</type>
+                                <size>150</size>
+                                <max>200</max>
+                                <eval>trim,required</eval>
+                            </config>
+                        </TCEforms>
+                    </target>
+                    <target_statuscode type="array">
+                        <TCEforms>
+                            <label>LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:mrm_be_cm_redirects.target_statuscode</label>
+                            <config>
+                                <type>select</type>
+                                <renderType>selectSingle</renderType>
+                                <items type="array">
+                                    <numIndex index="0" type="array">
+                                        <numIndex index="0">permanently moved</numIndex>
+                                        <numIndex index="1">301</numIndex>
+                                    </numIndex>
+                                    <numIndex index="1" type="array">
+                                        <numIndex index="0">temporarily moved</numIndex>
+                                        <numIndex index="1">307</numIndex>
+                                    </numIndex>
+                                </items>
+                            </config>
+                        </TCEforms>
+                    </target_statuscode>
+                </el>
+            </ROOT>
+        </sDEF>
+    </sheets>
+</T3DataStructure>

Some files were not shown because too many files changed in this diff