On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I am getting odd output in addition to my resource content when imageSlim is applied. Anyone have an idea how to fix this?
    
    code]n="1.0" standalone="yes"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <?xml encod
    </main>


    When templating like this:

    [[imageSlim? &input=`
    [[!mgGetImages?
    &imageTpl=`MoreGallery.Gallery.imgTpl`
    &wrapperTpl=`MoreGallery.Gallery.wrapperTpl`
    &wrapperIfEmpty=`0`
    ]]
    `]]


    With MoreGallery.Gallery.imgTpl being:
      <a href="[[+file_url]]" class="col-lg-3 col-md-4 col-xs-6">
        <img src="[[+file_url:pThumb=`w=200`]]" class="img-fluid img-thumbnail" />
      </a>
                </div>
              </div>

    [ed. note: ceramicmonster last edited this post 11 months ago.]