0

I have setup a distribution which also provides PageTS for backend_layouts.

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:'. $_EXTKEY .'/Configuration/TSconfig/Page.txt">');

and this is how content is assigned with TypoScript

page.20 = FLUIDTEMPLATE
page.20 {
  partialRootPath = {$resDir}/Private/Partials
  layoutRootPath = {$resDir}/Private/Layouts

  file.stdWrap.cObject = CASE
  file.stdWrap.cObject {
      key.data = levelfield:-1, backend_layout_next_level, slide
      key.override.field = backend_layout

      # das default template 2spaltig
      default = TEXT
      default.value = {$resDir}/Private/Templates/Landing.html

      # das LandingPage backend layout 3 spaltig
      pagets__1 = TEXT
      pagets__1.value = {$resDir}/Private/Templates/Landing.html


      # das 2spaltige backend layout
      pagets__2 = TEXT
      pagets__2.value = {$resDir}/Private/Templates/Default.html

  }

  variables {
      kopf < styles.content.get
      kopf.select.where=colPos=5
      contentLeft < styles.content.get
      contentLeft.select.where=colPos=1
      contentMain < styles.content.get
      contentMain.select.where=colPos=0
      contentRight < styles.content.get
      contentRight.select.where=colPos=2
   }
 }

Problem is:

No matter what I do I dont get colPos 5 rendered in Frontend. It seems like only colPos 0(main),1(left),2(right) are allowed. But the Content is saved to database and has a 5 in the colpos field. And no result whatsoever for colPos 5.

I use fluid_styled_content only - no css_styled_content. And it is included before my distribution in Template Setup.

UPDATE this is on nginx with php7.0-fpm & mysql 5.6

forgot to to say that the kopf variable is used in a Partial, so it is exactly the same problem as stated here partial variable problem

FitzPatrick
  • 175
  • 10
  • solution was as discribed in the given link with the use of arguments:{contentTop: contentTop} inside the partial. Funny I could not find this documented anywhere – FitzPatrick Jul 14 '16 at 08:19
  • Just a comment: Don't use the variables section for that as that is a drawback regarding performance. Read about it at http://stackoverflow.com/a/38843416/2389552 – Georg Ringer Aug 09 '16 at 19:06

1 Answers1

0

I also had trouble getting markers to work with select.where=colPos=5 I ended up using the longer lookup variant with the table as a parameter.

KOPF = CONTENT
KOPF {
   table = tt_content
   select {
       orderBy = sorting
       where = colPos = 5
   }
}
cptnk
  • 2,430
  • 18
  • 29