We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53283
    • 14 Posts
    I am a newbie. I am trying to use getresource to output some images for an image slider but the template is not being called . Nothing is outputted. This my code below. Please can someone help.
    [[getResources? 
            &resources=`[[*slide-img]]` 
            &parents=`-1` 
            &depth=`0` 
            &limit=`0` 
            &tpl=`slides` 
            &sortby=`FIELD(modResource.id,[[*slide-img]])` 
            &sortdir=`ASC`
            &includeTVs=`1` &processTVs=`1` &tvPrefix=`tv.`
        ]]


    The chunk is:
    <div class="slider-item" style="background-image: url('[[+tv.slide-img]]')">
        
       
        <div class="p-responsive center">
            <div class="caption">
                <h2 class="h1 white condensed-bold text-shadow">[[+pagetitle]]</h2>
                <p>[[+description]]</p>
                [[+link_attributes:notempty=`<a title="[[+pagetitle]]" class="mt1 button button-primary" href="[[+link_attributes]]">[[+menutitle]]</a>`]]
            </div>
            [[+introtext:notempty=`<div class="photocaption mt1 small">
                <h4>[[+introtext]]</h4>
            </div>`]]
        </div>    
    </div>


      • 17301
      • 932 Posts
      Hi,

      It looks like youre calling an image into your &resources call:

      &resources=`[[*slide-img]]`


      The value should be the ID of the resource that has the image.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.