Advertisement
Guest User

TYPO3 TypoScript Gridelements

a guest
May 27th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. #### TYPOSCRIPT:
  2. <INCLUDE_TYPOSCRIPT: source="FILE:EXT:gridelements/Configuration/TypoScript/setup.typoscript">
  3. tt_content.gridelements_pi1.20.10 =< lib.contentElement
  4. tt_content.gridelements_pi1.20.10 {
  5. partialRootPaths {
  6. 30 = {$theme.urls.themeResources}Private/Extensions/gridelements/Partials/
  7. }
  8. layoutRootPaths {
  9. 30 = {$theme.urls.themeResources}Private/Extensions/gridelements/Layouts/
  10. }
  11. templateRootPaths {
  12. 30 = {$theme.urls.themeResources}Private/Extensions/gridelements/Templates/
  13. }
  14.  
  15. templateName.field = tx_gridelements_backend_layout
  16. templateName.ifEmpty = gridDefault
  17.  
  18. dataProcessing {
  19. 10 = GridElementsTeam\Gridelements\DataProcessing\GridChildrenProcessor
  20. 10 {
  21. default {
  22. as = children
  23. # Default options of the grid children processor
  24. # Change them according to the needs of your layout
  25. # Read more about it in the TypoScript section of the manual
  26. options {
  27. # sortingDirection = ASC
  28. # sortingField = sorting
  29. # recursive = 0
  30. # resolveFlexFormData = 1
  31. # resolveBackendLayout = 1
  32. # respectColumns = 1
  33. # respectRows = 1
  34. }
  35. }
  36. }
  37. }
  38. }
  39.  
  40.  
  41. #### FLUID HTML for example:
  42. <f:for each="{children}" as="row" iteration="i">
  43. <div class="row">
  44. <f:for each="{row}" as="column" iteration="i">
  45. <div class="column">
  46. <f:for each="{column}" as="content" iteration="i">
  47. <f:cObject typoscriptObjectPath="tt_content.{content.data.CType}" data="{content.data}" />
  48. </f:for>
  49. </div>
  50. </f:for>
  51. </div>
  52. </f:for>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement