Forum

Thread tagged as: Question, Problem

Assets do not load

Hello

I am hoping that someone has a simple answer. I have created a repeater to produce a list of images with a title, and descriptions to the image. When I click + Add Another and go to select or upload in image. The select an asset window appears but it does not load the existing assets! If you go to the tab at the top of admin and look at the assets they are all there.

Does anyone have any ideas why the assets are on showing?

Your help is greatly appreciated.

Paul

Paul Quillin-Creamer

Paul Quillin-Creamer 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us your template?

Hi Drew

The template is as follows:

<perch:repeater id="past_images" label="Past Images" max="10">
  <div class='container-fluid'>
    <div class="row">
      <perch:before>
        <div class="clearfix"></div>
      </perch:before>
      <div class="col-md-3"> <img class="img-responsive" alt="Daniel Stedman" src="<perch:content type="image" id="picture_1" label="Picture 1" width="250" height="250"/>"/> </div>
      <div class="col-md-3">
        <h3>
          <perch:content type="text" id="title_of_picture" label="Name of picture" />
        </h3>
        <h4>
          <perch:content type="text" id="picture_price" label="Price of picture" />
        </h4>
        <p>
          <perch:content type="textarea" id="discription_of_picture" label="Picture discription" />
        </p>
      </div>
      <div class="col-md-3"> <img class="img-responsive" alt="Daniel Stedman" src="<perch:content type="image" id="picture_2" label="Picture 2" width="250" height="250"/>"/> </div>
      <div class="col-md-3">
        <h3>
          <perch:content type="text" id="title_of_picture_2" label="Name of picture" />
        </h3>
        <h4>
          <perch:content type="text" id="picture_price_2" label="Price of picture" />
        </h4>
        <p>
          <perch:content type="textarea" id="discription_of_picture_2" label="Picture discription 2" />
        </p>
      </div>
      <perch:after>
        <div class="clearfix"></div>
      </perch:after>
    </div>
    <hr />
  </div>
</perch:repeater>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you been able to add any assets using the asset chooser?

Do you get any errors in your browser console?

Hello Drew

I have been away for a few days and reviewed the template files and found that when dleting the debug code from the config file I accidently deleted the ?> from the end of the file.

Ooooops.

Best regards,

Paul

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's fine, there doesn't need to be ?> at the end of the file.