동적 인 Typo3 - 유체 레이아웃을 만들고 싶습니다. 열 너비는 자동으로 조정해야합니다. Fluid와 Typoscript의 제한을 통해 필자는 가운데 열의 복잡한 조건을 공식화하는 데 문제가 있습니다. AND, OR 연산자가 작동하지 않습니다.Typo3 - 동적 레이아웃
누군가가 나를 도울 수 있기를 바랍니다.
Typoscript :
variables {
top < styles.content.get
top.select.where = colPos=3
left < styles.content.get
left.select.where = colPos=1
center < styles.content.get
center.select.where = colPos=0
right < styles.content.get
right.select.where = colPos=2
footer < styles.content.get
footer.select.where = colPos=4
}
레이아웃 : 새 변수를 설정하고자하는 경우
<div class="container-fluid">
TEST: {f:if(condition:'{right} AND {left}', then:'8', else:'{f:if(condition:\'{left} OR {right}\', then: \'9\', else:\'12\')}')}
<div class="row">
<div id="top_nav">
{top -> f:format.raw()}
</div>
</div>
<div class="row">
<f:if condition="{left}">
<div id="left" class="col-xs-12 col-md-{f:if(condition:'{right}', then:'2', else:'3')}">
{left -> f:format.raw()}
</div>
</f:if>
<div id="center" class="col-xs-12 col-md-{f:if(condition:'{right} AND {left}', then:'8', else:'{f:if(condition:\'{left} OR {right}\', then: \'9\', else:\'12\')}')}">
{center -> f:format.raw()}
</div>
<f:if condition="{right}">
<div id="right" class="col-xs-12 col-md-{f:if(condition:'{left}', then:'2', else:'3') }">
{right -> f:format.raw()}
</div>
</f:if>
</div>