Parcourir la source

Merge branch 'develop'

* develop: (40 commits)
  add site configuration
  update readme
  update readme
  clean up
  squirrel
  change shell
  add composer install as cmd
  squirrel
  copy extensions
  copy extensions
  add extensions
  add composer as builder
  try to give more memory to the docker build process
  set base image to version 13
  add new base image version
  squirrel
  try to enable composer
  disable typo3 crap
  increase image version
  change dependency
  ...
ksieren il y a 3 ans
Parent
commit
c2e4e30b1c
100 fichiers modifiés avec 13891 ajouts et 55 suppressions
  1. 12 0
      .gitignore
  2. 8 0
      Dockerfile
  3. 97 0
      Jenkinsfile
  4. 339 0
      LICENSE
  5. 68 55
      README.md
  6. 69 0
      composer.json
  7. 17 0
      config/sites/abi2021/config.yaml
  8. 53 0
      extensions/mrm_be/Classes/Controller/DKZController.php
  9. 248 0
      extensions/mrm_be/Classes/DKZer.php
  10. 42 0
      extensions/mrm_be/Classes/Form/Element/PagesDkzSelector.php
  11. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmAdditionalinfoboxPreviewRenderer.php
  12. 47 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmAnimationPreviewRenderer.php
  13. 58 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmButtonPreviewRenderer.php
  14. 65 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChatbotDirectPreviewRenderer.php
  15. 68 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChatbotPreviewRenderer.php
  16. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistInputPreviewRenderer.php
  17. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistRadioRangePreviewRenderer.php
  18. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistScalePreviewRenderer.php
  19. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoMultiPreviewRenderer.php
  20. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistToDoPreviewRenderer.php
  21. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmChecklistYesMaybeNoPreviewRenderer.php
  22. 82 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmContentimagePreviewRenderer.php
  23. 72 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmExplorerboxPreviewRenderer.php
  24. 64 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmExtraInfosboxPreviewRenderer.php
  25. 47 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmFahrplanPreviewRenderer.php
  26. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmFoldoutH3PreviewRenderer.php
  27. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmFoldoutPreviewRenderer.php
  28. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmH2PreviewRenderer.php
  29. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmH3PreviewRenderer.php
  30. 75 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmHeroimagePreviewRenderer.php
  31. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmHighlightboxPreviewRenderer.php
  32. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmHtmlPreviewRenderer.php
  33. 89 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmImageplusPreviewRenderer.php
  34. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmInfoboxPreviewRenderer.php
  35. 57 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmInjectionPreviewRenderer.php
  36. 64 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmInterviewantwortPreviewRenderer.php
  37. 60 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmInterviewfragePreviewRenderer.php
  38. 57 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmIntrotextPreviewRenderer.php
  39. 65 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmLinkagePreviewRenderer.php
  40. 65 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmMenuPreviewRenderer.php
  41. 63 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmMovingimagesvideoPreviewRenderer.php
  42. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmNewsletteraboPreviewRenderer.php
  43. 57 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmParagraphPreviewRenderer.php
  44. 74 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmPicturechoicePreviewRenderer.php
  45. 61 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmPodcastPreviewRenderer.php
  46. 75 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmPostimagePreviewRenderer.php
  47. 75 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmPublicationPreviewRenderer.php
  48. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmQuizPreviewRenderer.php
  49. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmQuizdirectPreviewRenderer.php
  50. 82 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmRawimagePreviewRenderer.php
  51. 55 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmRedirectsPreviewRenderer.php
  52. 73 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmStatementboxPreviewRenderer.php
  53. 71 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmThemaDerWochePreviewRenderer.php
  54. 74 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmTopthemenPreviewRenderer.php
  55. 48 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmBeCmVotingPreviewRenderer.php
  56. 52 0
      extensions/mrm_be/Classes/Hooks/PageLayoutView/MrmbeCmMaintenancePreviewRenderer.php
  57. 2378 0
      extensions/mrm_be/Classes/Hooks/TCE/TCEMainHook.php
  58. 88 0
      extensions/mrm_be/Classes/Mongoer.php
  59. 63 0
      extensions/mrm_be/Classes/Task/PageStatusValidator.php
  60. 56 0
      extensions/mrm_be/Classes/Task/RedirectsFromMysqlToMongo.php
  61. 75 0
      extensions/mrm_be/Classes/UserFunc/Pages.php
  62. 16 0
      extensions/mrm_be/Configuration/Backend/AjaxRoutes.php
  63. 238 0
      extensions/mrm_be/Configuration/FlexForms/additionalinfobox.xml
  64. 108 0
      extensions/mrm_be/Configuration/FlexForms/animation.xml
  65. 54 0
      extensions/mrm_be/Configuration/FlexForms/button.xml
  66. 35 0
      extensions/mrm_be/Configuration/FlexForms/chatbot-direct.xml
  67. 87 0
      extensions/mrm_be/Configuration/FlexForms/chatbot.xml
  68. 176 0
      extensions/mrm_be/Configuration/FlexForms/checklist-input.xml
  69. 409 0
      extensions/mrm_be/Configuration/FlexForms/checklist-radiorange.xml
  70. 274 0
      extensions/mrm_be/Configuration/FlexForms/checklist-scale.xml
  71. 121 0
      extensions/mrm_be/Configuration/FlexForms/checklist-todo-multi.xml
  72. 221 0
      extensions/mrm_be/Configuration/FlexForms/checklist-todo.xml
  73. 184 0
      extensions/mrm_be/Configuration/FlexForms/checklist-yesmaybeno.xml
  74. 90 0
      extensions/mrm_be/Configuration/FlexForms/contentimage.xml
  75. 260 0
      extensions/mrm_be/Configuration/FlexForms/dynamictileoverview.xml
  76. 795 0
      extensions/mrm_be/Configuration/FlexForms/explorerbox.xml
  77. 205 0
      extensions/mrm_be/Configuration/FlexForms/extra-infosbox.xml
  78. 626 0
      extensions/mrm_be/Configuration/FlexForms/fahrplan.xml
  79. 226 0
      extensions/mrm_be/Configuration/FlexForms/foldout-h3.xml
  80. 226 0
      extensions/mrm_be/Configuration/FlexForms/foldout.xml
  81. 25 0
      extensions/mrm_be/Configuration/FlexForms/headline1.xml
  82. 25 0
      extensions/mrm_be/Configuration/FlexForms/headline2.xml
  83. 25 0
      extensions/mrm_be/Configuration/FlexForms/headline3.xml
  84. 90 0
      extensions/mrm_be/Configuration/FlexForms/heroimage.xml
  85. 46 0
      extensions/mrm_be/Configuration/FlexForms/highlightbox.xml
  86. 413 0
      extensions/mrm_be/Configuration/FlexForms/homeheaderinfo.xml
  87. 25 0
      extensions/mrm_be/Configuration/FlexForms/html.xml
  88. 131 0
      extensions/mrm_be/Configuration/FlexForms/imageplus.xml
  89. 255 0
      extensions/mrm_be/Configuration/FlexForms/infobox.xml
  90. 25 0
      extensions/mrm_be/Configuration/FlexForms/injection.xml
  91. 46 0
      extensions/mrm_be/Configuration/FlexForms/interviewantwort.xml
  92. 35 0
      extensions/mrm_be/Configuration/FlexForms/interviewfrage.xml
  93. 26 0
      extensions/mrm_be/Configuration/FlexForms/introtext.xml
  94. 235 0
      extensions/mrm_be/Configuration/FlexForms/linkage.xml
  95. 50 0
      extensions/mrm_be/Configuration/FlexForms/maintenance.xml
  96. 83 0
      extensions/mrm_be/Configuration/FlexForms/menu.xml
  97. 43 0
      extensions/mrm_be/Configuration/FlexForms/movingimagesvideo.xml
  98. 38 0
      extensions/mrm_be/Configuration/FlexForms/newsletterabo.xml
  99. 28 0
      extensions/mrm_be/Configuration/FlexForms/paragraph.xml
  100. 1467 0
      extensions/mrm_be/Configuration/FlexForms/picturechoice.xml

+ 12 - 0
.gitignore

@@ -0,0 +1,12 @@
+.DS_Store
+.idea
+nbproject
+/var/*
+!/var/labels
+/vendor
+/public/*
+!/public/.htaccess
+!/public/typo3conf
+/public/typo3conf/*
+!/public/typo3conf/LocalConfiguration.php
+!/public/typo3conf/AdditionalConfiguration.php

+ 8 - 0
Dockerfile

@@ -0,0 +1,8 @@
+FROM kerstinsieren/alpine-phpfpm-nginx-baseimage:php74-14
+ENV TZ=Europe/Berlin
+COPY . .
+ONBUILD COPY composer.json ./
+USER root
+RUN composer install --no-interaction
+RUN chown -R nobody:nobody /var/www/html
+USER nobody

+ 97 - 0
Jenkinsfile

@@ -0,0 +1,97 @@
+def normalizedBranchName = "${BRANCH_NAME}".replaceAll('/','-').replaceAll('%2F','-').replaceAll('_','-').toLowerCase()
+def imageTag = "${normalizedBranchName}-${env.BUILD_ID}"
+def imageBuildId = "${env.BUILD_ID}"
+def dockerDeployWriteRegistry = "https://index.docker.io/v1/"
+def project = "abitypo3cms"
+def gitRepoEmail = "k.sieren@meramo.de"
+def imageNameWithTag = "kerstinsieren/abitypo3cms:${imageTag}"
+def imageNameTagLatest = "kerstinsieren/abitypo3cms:${normalizedBranchName}-latest"
+def helmGitRepo = "git2.meramo.org/helm_charts/abi-typo3-chart.git"
+
+
+pipeline {
+    agent {
+      kubernetes  {
+            label 'jenkins-slave'
+             defaultContainer 'jnlp'
+      yaml """
+apiVersion: v1
+kind: Pod
+spec:
+  containers:
+  - name: docker
+    image: docker:1.11
+    command:
+    - cat
+    tty: true
+    volumeMounts:
+        - name: dockersock
+          mountPath: /var/run/docker.sock
+  - name: tools
+    image: argoproj/argo-cd-ci-builder:v1.0.0
+    command:
+    - cat
+    tty: true
+  volumes:
+    - name: dockersock
+      hostPath:
+        path: /var/run/docker.sock
+"""
+        }
+    }
+  environment {
+      IMAGE_REPO = "${imageNameWithTag}"
+  }
+  stages {
+    stage('Build') {
+      environment {
+        DOCKERHUB_CREDS = credentials('deploy-docker-id')
+      }
+      steps {
+        container('docker') {
+          sh "echo ${env.GIT_COMMIT}"
+          sh "docker build --no-cache -t ${imageNameWithTag} . && docker tag ${imageNameWithTag} ${imageNameTagLatest}"
+          sh "docker login --username $DOCKERHUB_CREDS_USR --password $DOCKERHUB_CREDS_PSW && docker push ${imageNameWithTag} && docker push ${imageNameTagLatest}"
+          sh "docker run --rm --entrypoint tar ${imageNameWithTag} cCj /var/www . > ${project}-${imageTag}.tar.bz2"
+          archiveArtifacts "${project}-${imageTag}.tar.bz2"
+          stash "${project}-${imageTag}.tar.bz2"
+          sh "rm ${project}-${imageTag}.tar.bz2"
+        }
+      }
+    }
+    stage('Update Helm Chart') {
+      environment {
+        GIT_CREDS = credentials('deploy-git-id')
+        HELM_GIT_REPO_URL = "${helmGitRepo}"
+        GIT_REPO_EMAIL = "${gitRepoEmail}"
+        GIT_REPO_BRANCH = "${normalizedBranchName}"
+      }
+      steps {
+        container('tools') {
+            sh "git clone https://${env.HELM_GIT_REPO_URL}"
+            sh "git config --global user.email ${env.GIT_REPO_EMAIL}"
+            sh "git config --global user.name ${env.GIT_CREDS_USR}"
+            sh "wget https://github.com/mikefarah/yq/releases/download/v4.9.6/yq_linux_amd64.tar.gz"
+            sh "tar xvf yq_linux_amd64.tar.gz"
+            sh "mv yq_linux_amd64 /usr/bin/yq"
+          dir("abi-typo3-chart") {
+          withCredentials([gitUsernamePassword(credentialsId: 'deploy-git-id', gitToolName: 'git-tool')]) {
+              sh "git checkout ${normalizedBranchName}"
+              sh '''#!/bin/bash
+              echo $GIT_REPO_EMAIL
+              echo $GIT_COMMIT
+              ls -lth
+              yq eval '.image.repository = env(IMAGE_REPO)' -i values.yaml
+              yq eval '.image.tag = env(GIT_COMMIT)' -i values.yaml
+              cat values.yaml
+              '''
+              sh "git add values.yaml"
+              sh "git commit -m \"Triggered Build '$GIT_COMMIT'\""
+              sh "git push https://$HELM_GIT_REPO_URL"
+            }
+          }
+        }
+      }
+    }
+  }
+}

+ 339 - 0
LICENSE

@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.

+ 68 - 55
README.md

@@ -1,58 +1,71 @@
-# TYPO3 CMS Base Distribution
-
-Get going quickly with TYPO3 CMS.
-
-## Prerequisites
-
-* PHP 7.2
+# abi.de Typo3 CMS
+
+### URLs
+* staging: 
+  * Backend/CMS: https://staging-abi-cms.meramo.org
+  * Frontend: ???
+* live: ???
+
+External DB management access:
+* staging: 
+  * Mysql: https://staging-abi-pma.meramo.org/
+  * MongoDB: mongodb://username:password@213.239.225.120:30002/db
+    (Credentials can be found in our secure password manager)
+* live: ???
+
+### Deployment Components
+* staging: 
+  * Backend/CMS:
+    * Project Repository: https://git2.meramo.org/typo3/abitypo3cms.git
+    * Helm Chart: https://git2.meramo.org/helm_charts/abi-typo3-chart.git
+    * ArgoCD Project: stagingabitypo3cms (https://staging-argocd.meramo.org)
+      * Application: staging-abitypo3cms
+      * MysqlDB: staging-abitypo3cms-db
+      * MongoDB: staging-abitypo3cms-mongodb
+  * Frontend:
+    * ???
+
+
+### Prerequisites
+* Typo3 10
+* PHP 7.4
+* Mysql DB
 * [Composer](https://getcomposer.org/download/)
 
-## Quickstart
-
-* `composer create-project typo3/cms-base-distribution project-name ^10`
-* `cd project-name`
-
-**Setup:**
-
-To start an interactive installation, you can do so by executing the following
-command and then follow the wizard:
-
-```
-php vendor/bin/typo3cms install:setup
-```
-
-**Setup unattended (optional):**
-
-If you're a more advanced user, you might want to leverage the unattended installation.
-To do this, you need to execute the following command and substitute the arguments
-with your own environment configuration.
-
-```
-php vendor/bin/typo3cms install:setup \
-    --no-interaction \
-    --database-user-name=typo3 \
-    --database-user-password=typo3 \
-    --database-host-name=127.0.0.1 \
-    --database-port=3306 \
-    --database-name=typo3 \
-    --use-existing-database \
-    --admin-user-name=admin \
-    --admin-password=password \
-    --site-setup-type=site
-```
-
-**Development server:**
-
-While it's advised to use a more sophisticated web server such as
-Apache 2 or nginx, you can instantly run the project by using PHPs` built-in
-[web server](https://secure.php.net/manual/en/features.commandline.webserver.php).
-
-* `TYPO3_CONTEXT=Development php -S localhost:8000 -t public`
-* open your browser at "http://localhost:8000"
-
-Please be aware that the built-in web server is single threaded. Which is ultimately
-a performance killer and may result in deadlocks if you execute too many requests at once.
-
-# License
 
-GPL-2.0 or later
+### Custom Extensions
+* mrm_be
+* mrmbepages
+
+### TER Extensions
+* [ichhabrecht/content-defender](https://extensions.typo3.org/extension/content_defender)
+* [wazum/pagetree-resizable](https://extensions.typo3.org/extension/pagetree_resizable)
+* [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv)
+
+### Setup (general)
+1. Clone project.
+2. Setup mysql db.
+3. Copy <projectdir>/public/typo3conf/env-file-template to <projectdir>/public/typo3conf/.env and set DB credentials and other
+   secrets in the newly created .env .
+4. Import a fresh dump into your mysql db.
+5. Fill up the 'fileadmin'-Directory with a fresh backup.
+6. cd into project's root folder
+7. composer install
+
+
+### DDEV Setup (local development)
+1. Create a local project directory change to it. (cd projectdir)
+2. clone this git repo into your projectdir (git clone .....)
+3. Copy <projectdir>/public/typo3conf/env-file-template to <projectdir>/public/typo3conf/.env and set DB credentials and other
+   secrets in the newly created .env .
+4. ddev config
+5. Choose 'php' (NOT 'typo3') as kind of project and accept all other default options in the 'ddev config challenge'
+6. Edit **.ddev/config.yaml**:
+    * docroot: "abitypo3cms/public"
+    * php_version: "7.4"
+    * webimage_extra_packages: [php7.4-mongodb]  # add this line if it is not already there!
+7. ddev start
+8. ddev describe (to get an overview of what ddev has build for you)
+9. ddev ssh (to ssh into the projects web server)
+10. cd abitypo3cms (on the web server!)
+11. composer install

+ 69 - 0
composer.json

@@ -0,0 +1,69 @@
+{
+	"name": "typo3/cms-base-distribution",
+	"description" : "TYPO3 CMS Base Distribution",
+	"license": "GPL-2.0-or-later",
+	"config": {
+		"allow-plugins": {
+			"typo3/class-alias-loader": true,
+			"typo3/cms-composer-installers": true
+		},
+		"platform": {
+			"php": "7.4"
+		},
+		"sort-packages": true
+	},
+	"repositories": [
+		{
+			"type": "path",
+			"url": "extensions/*",
+			"options": {
+				"symlink": true
+			}
+		}
+	],
+	"require": {
+		"ext-dom": "*",
+		"ext-json": "*",
+		"helhum/typo3-console": "^6.0.0",
+		"ichhabrecht/content-defender": "^3.2",
+		"meramo/mrm-be": "@dev",
+		"meramo/mrmbepages": "@dev",
+		"mongodb/mongodb": "^1.10",
+		"typo3/cms-about": "^10.4.0",
+		"typo3/cms-backend": "^10.4.0",
+		"typo3/cms-belog": "^10.4.0",
+		"typo3/cms-beuser": "^10.4.0",
+		"typo3/cms-core": "^10.4.0",
+		"typo3/cms-dashboard": "^10.4.0",
+		"typo3/cms-extbase": "^10.4.0",
+		"typo3/cms-extensionmanager": "^10.4.0",
+		"typo3/cms-felogin": "^10.4.0",
+		"typo3/cms-filelist": "^10.4.0",
+		"typo3/cms-fluid": "^10.4.0",
+		"typo3/cms-fluid-styled-content": "^10.4.0",
+		"typo3/cms-form": "^10.4.0",
+		"typo3/cms-frontend": "^10.4.0",
+		"typo3/cms-impexp": "^10.4.0",
+		"typo3/cms-info": "^10.4.0",
+		"typo3/cms-install": "^10.4.0",
+		"typo3/cms-recordlist": "^10.4.0",
+		"typo3/cms-rte-ckeditor": "^10.4.0",
+		"typo3/cms-seo": "^10.4.0",
+		"typo3/cms-setup": "^10.4.0",
+		"typo3/cms-sys-note": "^10.4.0",
+		"typo3/cms-t3editor": "^10.4.0",
+		"typo3/cms-tstemplate": "^10.4.0",
+		"typo3/cms-viewpage": "^10.4.0",
+		"vlucas/phpdotenv": "^5.5",
+		"wazum/pagetree-resizable": "^1.3"
+	},
+	"scripts":{
+		"typo3-cms-scripts": [
+			"typo3cms install:generatepackagestates",
+			"typo3cms install:fixfolderstructure"
+		],
+		"post-autoload-dump": [
+			"@typo3-cms-scripts"
+		]
+	}
+}

+ 17 - 0
config/sites/abi2021/config.yaml

@@ -0,0 +1,17 @@
+base: 'https://abi.de'
+languages:
+  -
+    title: Deutsch
+    enabled: true
+    languageId: 0
+    base: /
+    typo3Language: de
+    locale: de_DE.UTF-8
+    iso-639-1: de
+    navigationTitle: Deutsch
+    hreflang: de-de
+    direction: ltr
+    flag: de
+    websiteTitle: ''
+rootPageId: 6
+websiteTitle: 'abi» dein weg in studium und beruf'

+ 53 - 0
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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;
+        }
+    }
+}

+ 2378 - 0
extensions/mrm_be/Classes/Hooks/TCE/TCEMainHook.php

@@ -0,0 +1,2378 @@
+<?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,
+      '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);
+  }
+}

+ 88 - 0
extensions/mrm_be/Classes/Mongoer.php

@@ -0,0 +1,88 @@
+<?php
+namespace Meramo\mrm_be;
+
+//require '/var/phpmongodb/vendor/autoload.php';
+
+
+// TODO: scheduler task alle 15 min welcher
+// select x.deleted, x.disabled, x.source_path as source, x.target, x.target_statuscode as statusCode from sys_redirect as x where x.deleted = 0 and x.disabled = 0 order by x.updatedon DESC
+// abfrägt und aber ohne deleted, disabled und mit timestamp nicht älter als 16 min ;)
+// in key value array spielt und immer nur das aktuellste sourcepath-teil (updatedon) behält
+// danach durchrequesten (deleted und disabled abfrage nicht vergessen ;) )
+// target T3LINK überprüfen
+// ganz zum schluss ein delete mongo query über deleted = 1 || disabled = 1 und dann passts
+
+class Mongoer
+{
+  function __construct(){}
+
+  public static function sendRequest($dataType, $action, $data){
+//    $client = new \MongoDB\Client("mongodb://db:db@mongo:27017/");
+    $client = new \MongoDB\Client($_ENV['FE_DATABASE_DSN']);
+    $collection = null;
+    if($dataType == "pages")
+      $collection = $client->abi_local->pages;
+
+    if($dataType == "search")
+      $collection = $client->abi_local->searches;
+
+    if($dataType == "topthemen")
+      $collection = $client->abi_local->topthemens;
+
+    if($dataType == "themaderwoche")
+      $collection = $client->abi_local->themaderwoches;
+
+    if($dataType == "security")
+      $collection = $client->abi_local->pagesecurities;
+
+    if($dataType == "abialtcache")
+      $collection = $client->abi_local->abialtcaches;
+
+    if($dataType == "menues")
+      $collection = $client->abi_local->menues;
+
+    if($dataType == "maintenance")
+      $collection = $client->abi_local->maintenance;
+
+    if($dataType == "redirects")
+      $collection = $client->abi_local->redirects;
+
+    if($dataType == "forwardings") 
+      $collection = $client->abi_local->forwardings;
+    
+    if($dataType == "pdfgenjobs") 
+      $collection = $client->abi_local->pdfgenjobs;
+    if($dataType == "chatbot") 
+      $collection = $client->abi_local->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('/var/www/html/tuepotest/public/typo3temp/debug.log', $msg.PHP_EOL, FILE_APPEND);
+  }
+
+  /* Private function to drop a collection */
+  public static function deleteAll($collection) {
+    return $collection->deleteMany();
+  }
+}

+ 63 - 0
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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
extensions/mrm_be/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>

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff