私は流体のtypo3サイトを1ページレイアウトで持っています.1つのメニューにはレイアウトが異なります。メインテンプレートで選択されたレイアウト名を取得する方法は?フロントエンドでレイアウト名を取得する - 流体タイプ3
main.htmlを
<v:page.menu levels="1" as="sections">
<f:for each="{sections}" as="section" iteration="itemIteration">
<f:debug>{sections}</f:debug>
</f:for>
</v:page.menu>
sub.html
<f:layout name="Pagewithnav" />
<f:section name="Configuration">
<flux:form id="subnav" icon="{f:uri.resource(path: 'Icons/Page/logo.png')}" label="Sub Navigation">
<!-- Insert fields, sheets, grid, form section objects etc. here, in this flux:form tag -->
</flux:form>
<flux:grid>
<!-- Edit this grid to change the "backend layout" structure -->
<flux:grid.row>
<flux:grid.column colPos="0" colspan="4" name="main" label="Navigation wrapper" />
</flux:grid.row>
<flux:grid.row>
<flux:grid.column colPos="1" colspan="4" name="main" label="Main wrapper" />
</flux:grid.row>
</flux:grid>
</f:section>
<f:section name="Main">
<div class="sub_nav">
<div class="container">
<v:content.render column="0"/>
</div>
</div>
<div class="container">
<v:content.render column="1"/>
</div>
</f:section>
ページのバックエンドレイアウトが必要な場合は、通常は$ GLOBALS ['TSFE']配列から取得できます。 しかし、ここはFlux社のことですよね?しかし、テンプレートプロバイダの拡張機能の中には、バックエンドのレイアウトを知る必要があります。要件をより正確に説明してください。 –
@AnuBhuvanendranNair私は流体の流れのテンプレートでテンプレート名が必要です。プロバイダの拡張子を使用しているので、私は$ GLOBALS ['TSFE']の配列 –