you can try, if multiItemsGridTV works for you.
see screenshot.
do it as here:
https://github.com/Bruno17/multiItemsGridTV/wiki
forum-thread see my signature.
create additional dropdown-TV:
name: itemtype
input-type: dropdown
input-option-values: text left - image right==itemtype1||image left - text right==itemtype2||big image==itemtype3
to get the dropdown into your form-window, alter the property ’formtabs’ of the TV ’multiItemsGrid’ to:
[{"caption":"Info", "fields": [{"field":"title","caption":"Title"}, {"field":"description","caption":"Description","inputTV":"richtext"}] }, {"caption":"Image", "fields": [{"field":"image","caption":"Image","inputTV":"image"},{"field":"itemtype","caption":"Type","inputTV":"itemtype"}] }]
create a chunk ’tvitems’ with content:
[[+itemtype:is=`itemtype1`:then=`
<div class="article-bloc-text-image">
<div class="article-text-g">[[+description]]</div>
<div class="article-bloc-image-r">
<img src="[[+image]]">
</div>
<div class="clearr"></div>
</div>
`]]
[[+itemtype:is=`itemtype2`:then=`
<div class="article-bloc-image-text">
<div class="article-bloc-image-l">
<img src="[[+image]]">
</div>
<div class="article-text-d">[[+description]]</div>
<div class="clearr"> </div>
</div>
`]]
[[+itemtype:is=`itemtype3`:then=`
<div class="article-bloc-image-854">
<img src="[[+image]]">
</div>
`]]
you can also (better) use the if-snippet instaed of output-filter-syntax.
create a snippet ’getImageList’ with that code:
https://github.com/Bruno17/multiItemsTv/blob/master/snippet.getImagelist.php
and put a snippetcall into your template or resource-content:
[[!getImageList? &tvname=`multiItemsGrid`&tpl=`tvitems`]]
Or create three different chunks itemtype1,itemtype2,itemtype3 and use this snippet-call:
[[!getImageList? &tvname=`multiitemsgrid`&tpl=`@CODE:[[$[[+itemtype]]]]`]]