2ndContent¶
Storage¶
Location of your first partial:
EXT:my_ext/Resources/Private/View/xblog/
└── 2ndContent
└── Partials
└── Externaltemplate
├── List
│ └── 01.html
└── Single
└── 01.html
Content¶
You are controlling your content with the partials of the 2ndContent level.
Partials must called 01, 02, 03, ...
List¶
This is a sample with debug output, fields from the main table and fields from a category table delivered by a view helper.
{namespace vh=MyVendor\MyExt\ViewHelpers}
<!-- EXT:my_ext/Resources/Private/View/xblog/1stPlugin/Partials/Externaltemplate/Single/01.html -->
<f:debug title="my-id@jzgasdf32">{data}</f:debug>
<f:debug title="my-id@jgfjgaezf">{_all}</f:debug>
<div class="row">
<div class="columns small-12 medium-3 col-sm-12 col-md-3">
<f:render partial="Method/Typolink/Image" arguments="{_all}" />
</div>
<div class="columns small-12 medium-9 col-sm-12 col-md-9">
<h4 class="text-overflow-ellipsis">
{data.title}
</h4>
<div class="row">
<div class="columns small-12 medium-9 col-sm-12 col-md-9">
<f:if condition="{data.category}" >
<div class="row">
<div class="columns small-3 col-sm-3">
Category:
</div>
<div class="columns small-9 col-sm-9">
<f:variable name="category"><vh:getcategory uid="{data.category}"/></f:variable>
{category.title}
</div>
</div>
...
Single¶
This is a sample with debug output, fields from the main table and fields from a category table delivered by a view helper.
{namespace vh=MyVendor\MyExt\ViewHelpers}
<!-- EXT:my_ext/Resources/Private/View/xblog/2ndContent/Partials/Externaltemplate/Single/01.html -->
<f:debug title="my-id@dukieug">{data}</f:debug>
<f:debug title="my-id@kdvhdfa">{_all}</f:debug>
<h2>{data.title}</h2>
<div class="columns small-12 medium-3 col-sm-12 col-md-3">
<f:render partial="Legresources/ImageSingleView" arguments="{_all}" />
</div>
<div class="columns small-12 medium-9 col-sm-12 col-md-9">
<div class="row">
<div class="columns small-12 large-12 col-sm-12 col-lg-12">
<f:if condition="{data.category}" >
<div class="row">
<div class="columns small-3 col-sm-3">
Category:
</div>
<div class="columns small-9 col-sm-9">
<f:variable name="category"><vh:getcategory uid="{data.category}"/></f:variable>
{category.title}
</div>
</div>
</f:if>
...