あなたはfluid_styled_contentを使用する場合:
はあなたの定数のテンプレートオーバーライドのパスを定義します。ここで
は、私はそれを行う方法は次のとおりです。
# overrides for fluid_styled_content
# will become lib.fluidContent.templateRootPaths.10
styles.templates.templateRootPath = {$templatePath}/Resources/Private/FSC/Templates
styles.templates.layoutRootPath = {$templatePath}/Resources/Private/FSC/Layouts
styles.templates.partialRootPath = {$templatePath}/Resources/Private/FSC/Partials
これは、そのフォルダ内のテンプレートを探すようにFSCを伝えます。もし彼らがそこにいるとすれば、それはオリジナルのものよりも好きです。この例では
、それは、あなたが
<f:debug>{data}</f:debug>
を試し、利用可能なデータを参照するには、レンダリング、レイアウト
<f:comment>Default Layout</f:comment>
<f:if condition="{data.layout} == 0">
<div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')}">
<f:if condition="{gallery.position.vertical} != 'below'">
<f:render partial="MediaGallery" arguments="{_all}" />
</f:if>
<div class="ce-bodytext">
<f:if condition="{gallery.position.noWrap}">
<f:render partial="Header" arguments="{_all}" />
</f:if>
<f:format.html>{data.bodytext}</f:format.html>
</div>
<f:if condition="{gallery.position.vertical} == 'below'">
<f:render partial="MediaGallery" arguments="{_all}" />
</f:if>
</div>
</f:if>
<f:comment>Custom Layout</f:comment>
<f:if condition="{data.layout} == 10">
<div class="myclass"><f:format.html>{data.bodytext</f:format.html></div>
</f:if>
を切り替えるための条件を使用することができますがありtypo3conf/ext/template/Resources/Private/Content/FSC/Templates/Textmedia.html
可能性がありさらに深く掘削することもできますが、掘削時に多くのコンテンツが表示されることがあります。
<f:debug>{data.someProperty.heresmorestuff}</f:debug>
出典
2016-04-12 09:15:44
Urs
質問は:正確に何を見てみましょうか?私はfluid_styled_contentを使うと信じていますが、どこで見つけることができますか?レイアウトは実際にどこに定義されていますか? – Chi
次にtypo3/sysext/fluid_styled_content/Private/templates/ を見てください。あなたはFluidの基本的な原理を知る必要があります –