typo3fluidtypo3-8.xtx-gridelements

Typo3 Fluid Template and Grid Elements: not rendering


I am doing first steps with Fluid templates and grid elements in Typo3 8.7.12. So far so good I have a functioning fluid template that works just fine.

Now I wanted to integrate grid elements (first time using it).

I installed the "gridelements" extension and loaded the static template to the page template. I created some grid elements with the wizard. They are showing in the BE and I can fill them with content. All good so far.

Then I added the following to my SETUP (as found here):

tt_content.gridelements_pi1.10 =< lib.stdheader
tt_content.gridelements_pi1.20.10.setup {
  4 < lib.gridelements.defaultGridSetup
  4 {
      cObject = FLUIDTEMPLATE
      cObject {
          file = fileadmin/fluid/templates/grid_2-1-2.html
      }
   }
}

Then I added the columns (column numbers are defined correctly) in my HTML template:

<div class="col-md-6 col-xs-12">
  {data.tx_gridelements_view_column_10->f:format.raw()}
</div>
<div class="col-md-6 col-xs-12">
  {data.tx_gridelements_view_column_11->f:format.raw()}
</div>

Is there anything more to it? Template is rendered but not the content of the Grid Element CE's.


Solution

  • Did you include the Gridelements static file containing the TypoScript setup for lib.gridelements.defaultGridSetup already? if so, when checking your setup with the TypoScript Object Browser, what is the value of the userFunc within

    tt_content.gridelements_pi1.20.10.userFunc
    

    BTW: You might want to follow the instructions in that article to get a fully Fluid based output for your Gridelements: https://coders.care/blog/tutorial/gridelements-and-cms-8/