我对 Typo3、Fluid 等很陌生,我无法解决以下问题:我不希望 fluidcontent_core 呈现我的自定义内容元素的标题。因此,我创建了一个具有适当布局的新模板,但标题仍然呈现。我已经找了一段时间了,找不到我的错误。如果有人可以帮助我,那就太好了!
我已经将 layoutRootPath 和 templateRootPath 添加到了 fluidcontetn_core 插件。在添加 CE 的模板中,我使用<v:content.render column="1" />
自定义内容元素的模板:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form options="{group: 'Carousel'}" id="carousel" label="Carousel">
<flux:grid>
<flux:grid.row>
<flux:grid.column name="Content" label="Carousel Content" />
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Preview">
<flux:widget.grid />
</f:section>
<f:section name="Main">
<section class="kundenlist carousel slide frame" id="kundenlist" data-ride="carousel">
<div class="carousel-inner">
<flux:content.render area="content" />
</div>
<ol class="carousel-indicators visible-xs">
<li data-target="#kundenlist" data-slide-to="0" class="active"></li>
<li data-target="#kundenlist" data-slide-to="1"></li>
</ol>
<ul class="carousel-navigation hidden-xs">
<li>
<a class="left" href="#kundenlist" data-slide="prev">
<span class="icon-carousel-prev"></span>
</a>
</li>
<li><span class="js-active-slide">1</span> / 2<!--bei dynamischer Generierung fix reinschreiben--></li>
<li>
<a class="right" href="#kundenlist" data-slide="next">
<span class="icon-carousel-next"></span>
</a>
</li>
</ul>
</section>
</f:section>
自定义内容元素的布局:
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<f:layout name="Content" />
<f:if condition="{settings.content.settings.container.addAnchor}">
<a name="c{record.uid}"></a>
</f:if>
<v:tag name="{v:variable.get(name: 'settings.container.types. {record.CType}') -> v:or(alternative: settings.container.types.default)}"
class="{settings.content.settings.container.className}">
<f:render section="Main" />
</v:tag>