Developer forum

Forum » Rapido » Images don't show in frontend and paragraph template gives error after update to 2.0

Images don't show in frontend and paragraph template gives error after update to 2.0

Manon Wekking
Reply

Hi, 

We have updated 2 websites http://volandis.azurewebsites.net/ and http://inextenzorapido.azurewebsites.net but now some pictures are not shown anymore in the frontend. Even after setting the images again. I tried to changed the choosen templates for thes paragrapgh, but that doesn't work. And if I choose the Paragraph.cshtml template, which I should expect to work, I get an error. See the attachments. Is this a known error? Do we need to change something in the settings?

Hope to hear from you soon. 

BR,

Manon Wekking

errorcode.png missing_images.png

Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply
This post has been marked as an answer

Hi Manon

Regarding the missing images in the "No Ecom" template. We are using a little piece of Javascript called bLazy to lazy load the images, and somehow there is a bug so that it is not included in the masterNoEcom.js We are going to fix this for the next release. But this is the fastest fix for you, right now:

1. Download bLazy.js and put it in the JS folder: http://dinbror.dk/blog/blazy/ 

2. Link it in the MasterNoEcom.cshtml template: <script src="/Files/Templates/Designs/Rapido/js/bLazy.js"></script>

3. Initialize it by adding this code right after the script link:

<script>
var bLazy = new Blazy({
     breakpoints: [{
      width: 420 // Max-width
      , loadInvisible: true
      , src: 'data-src-small'
    }]
});
</script>

 

The other bug you have experienced is a bit more complicated. It seems to be due to a missing "item type" field in the database, after you have made an upgrade. As stated on the doc site, where you have downloaded Rapido, we do not recommed just blindly upgrading to Rapido 2.0.0 There may be mysterious errors like this, that requires a little work.

The solution to the bug may be to force a iisreset on the site, or it could be that you simply has to go into each of your paragraphs, in the backend, secure that there is a selection in "Image style", and click save. Remember to also do this on the paragraphs inside paragraph containers. 

I hope this helps.

 

Best regards
Karsten Thuen

Votes for this answer: 1

 

You must be logged in to post in the forum