再会!令我遗憾的是,我无法在另一个 migx 中创建 migx。下面是我使用的代码。mainTV(滑块):
[
{"caption":"Info", "fields": [
{"field":"slider_title","caption":"Header row","inputTV":"slider_title_row"},
{"field":"image","caption":"Image","inputTV":"image_helper"}
]}
]
子电视(slider_title_row):
[
{"caption":"Header row", "fields": [
{"field":"title_row","caption":"Header row","inputTVtype":"text"}
]}
]
主要调用:
<div class="main-carousel">
[[!getImageList? &tvname=`slider` &tpl=`Slider_title.tpl`]]
</div>
chank Slider_title.tpl:
<div class="main-carousel__item carousel-item" style="background-image:url([[+image]]);">
<div class="container">
<div class="carousel-item__description">
<h2>[[!getImageList?
&tpl=`Slider_title_row.tpl`
&value=`[[+slider_title]]`
]]
</h2>
</div>
</div>
</div>
chank Slider_title_row.tpl:
<div>[[+title_row]]</div>
我不明白我做错了什么??先感谢您。