Skip to content

Instantly share code, notes, and snippets.

@pengmaradi
Last active September 8, 2017 13:16
Show Gist options
  • Save pengmaradi/d941daf3abab59a8e79bbc8965652488 to your computer and use it in GitHub Desktop.
Save pengmaradi/d941daf3abab59a8e79bbc8965652488 to your computer and use it in GitHub Desktop.
add templateLayout for news (TYPO3 tx_news)

(altnativ) TCEFORM.tt_content.pi_flexform.news_pi1.template.settings.templateLayout


TCEFORM.tt_content.pi_flexform.news_pi1.template.settings\.templateLayout {
    # <f:if condition="{settings.templateLayout} == 4">
    addItems= 4
    addItems.4 = News Banner (in Headerbild)
}

normal

tx_news.templateLayouts {
	// Plugin Options - Template - Template Layout
	# in Template use <f:if condition="{settings.templateLayout} == 99">
        #1 = A custom layout
        99 = news + Accordeon
	100 = news layout 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment