Typo3 Fluid Templates How to add multiple templates

心已入冬 提交于 2019-12-02 07:28:12

I don't know if it's very useful to have for (nearly) every page another template but in general that's possible. Just consider that in the root-line always that template is used that is defined on the current level or - if not existing - that, that is found first while going up the root-line.

For every additional template you've to add a section inside this snippet from above:

templateName.stdWrap.cObject {  
  key.data = pagelayout

  pagets__default = TEXT
  pagets__default.value = Default

  default = TEXT
  default.value = Default

}

So including the option about us the snippet could look like this:

templateName.stdWrap.cObject {  
  key.data = pagelayout

  pagets__default = TEXT
  pagets__default.value = Default

  default = TEXT
  default.value = Default

  pagets__aboutus = TEXT
  pagets__aboutus.value = AboutUs

  aboutus = TEXT
  aboutus.value = AboutUs

}

Additional you still have to change the TCA probably to include the options in the drop-down-button.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!