We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39417
    • 11 Posts
    начал делать сайт, словил непонятку: нет вывода картинок, пишу так

    [[!getResources? &parents=`12` &limit=`6` &tpl=`tovar.tpl` &hideContainers=`1` &includeContent=`0` &includeTVs=`1` &includeTVList=`product.img` &processTVs=`0` &tvPrefix=`tv` &sortby=`RAND()` &debug=`0`]]

    tpl:
    <div class="item_wrap left">
        <div class="item">
            <div class="name"><a href="[[~[[+id]]]]" class="">[[+pagetitle]]</a></div>
            <div class="thumb">
                <a href="[[~[[+id]]]]">
                    <img src="[[+tv.product.img:phpthumbof=`w=260&h=260&q=80`]]" alt="[[+tv.product.img]]">
                    [[+tv.product.availability:is=`1`:then=`<div class="icon_instock">В наличии</div>`:else=` `]]
                </a>
            </div>
            <div class="block">
                <div class="price left">[[+tv.product.price:money]] <span>руб.</span></div>
                <div class="buy right"><a href="[[~[[+id]]]]">В корзину</a></div>
                <div class="clear"></div>
            </div>
        </div>
    </div>


    p.s. сайт в процессе редизана, ТВ создавали с точками... (работало нормально)
      • 38783
      • 571 Posts
      I think
      &processTVs=`0`
      should be
      &processTVs=`1`
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com