First question: In the console on wix on preview i get:
“Loading the code for the Imat (ID) page. To debug this code, open pw18x.js in Developer Tools.” → is this a problem? what does it mean and How can I correct it?
2) second question: for example - >> i want to display in the gallery max. 3 images for each item but not Necessarily/Always 3. So is there a solution for this?
because In some case item has only 2 or 1 image.
but when in the database are lass images for any item > gallery shows empty pictures boxes — and message in console -->" Wix code SDK Warning: The src parameter of item at index 1 that is passed to the items method cannot be set to null or undefined."
> > > (see screen) ________ thanks for all in advance ________
The reason that b is working is cause at the time of the imatDataset_onReady the page may not ready yet and the $w(’ #imatgallery ') was not ready yet. So you try to interact with the gallery that is not ready yet.
The way that the gallery present and number of picture is pre-Define. You can hack it with other type of gallery or using default picture that is in the color of the background. Other option is to create the thumbnail functionality by your self with slide show or other component in the editor.
I used this code to populate image, title and description for my image gallery (dynamic page). It works fine for preview mode, but it does not work for my live site.
Note: I have already sync-ed my sandbox and live databases. Database permission, anyone can read.
Wix Support Response:
“Upon reviewing your site, it seems that there is a Permissions Error that causing issues with rendering your content from dataset to your live site. Hence, why it renders fine in preview, but not on the live site. This is due to a conflict within the scripted code.” “… we highly recommend using the Wix Code Forum.”