I created a blog using a dynamic page. The dynamic page displays two different article structures/templates:
-
A standard typical blog article structure
-
A list structure (e.g. top 25 shoes to buy this summer).
Using collapsible elements, my dynamic page shows one “template” and hides the other, depending on which cells have content in my database.
Everything works fine on the desktop version of my dynamic blog article pages, however, on the mobile version, it’s not collapsing the elements that are linked to empty cells in my database. Instead, I’m getting these big empty spaces on the mobile version of my dynamic blog article pages.
When I first published last week, the mobile version of my dynamic blog pages were working normally as expected. I then edited the height of my strips on Friday and that’s when the problem arose.
I’ve tried troubleshooting the problem by emptying my cache, using different devices and browsers, etc. to no avail. The problem isn’t due to the 70/10 rule either as it works fine on desktop, and I’ve also double-clicked the adjust page height button on the footer.
Now I’m not an expert when it comes to wix code (more of a trial and error copy pasta kind of coder atm) and I do have a lot of code on my dynamic page (around 1600 lines). Most of this code is repetitive (see below), so I’m wondering if maybe that has something to do with my problem (or maybe it’s just not structured properly and could be streamlined in some way.
Or perhaps it has something to do with the way I’m using the onReady functions.
Anyway, I thought I’d put my code up here to see if a real expert has any solutions or suggestions!
Here is a link to one of my dynamic blog page articles:
https://www.chattychums.com/articles/beauty/hourglass-vs.-laura-mercier—the-best-translucent-setting-powder%3F
Here is my code:
import wixWindow from ‘wix-window’ ;
$w.onReady( function () {
if (wixWindow.formFactor === “Mobile” ){
$w( “#line11” ).expand();
$w( “#text88” ).expand();
$w( “#box46” ).expand();
}
$w( ‘#columnStrip18’ ).hide();
$w( ‘#columnStrip7’ ).show();
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.subtitle) {
$w( “#ListStrip” ).show();
$w( “#columnStrip176” ).show();
} else {
$w( “#ListStrip” ).collapse();
$w( “#ListStrip” ).hide();
$w( “#columnStrip176” ).collapse();
$w( “#columnStrip176” ).hide();
}
} );
$w.onReady( () => {
$w( “#BodyImage3” ).fitMode = “fixedWidth” ;
$w( “#SoloImage” ).fitMode = “fixedWidth” ;
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body1) {
$w( “#columnStrip173” ).show();
$w( “#Body1” ).show();
$w( “#BlankColumn2” ).show();
} else {
$w( “#Body1” ).collapse();
$w( “#Body1” ).hide();
$w( “#columnStrip173” ).collapse();
$w( “#columnStrip173” ).hide();
$w( “#BlankColumn2” ).collapse();
$w( “#BlankColumn2” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.blog1LinkText) {
$w( “#body1Button” ).show();
$w( “#columnStrip174” ).show();
} else {
$w( “#columnStrip174” ).collapse()
$w( “#columnStrip174” ).hide();
$w( “#body1Button” ).collapse();
$w( “#body1Button” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage1) {
$w( “#BodyImage1” ).show();
} else {
$w( “#BodyImage1” ).collapse();
$w( “#BodyImage1” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage2) {
$w( “#BodyImage2” ).show();
$w( “#columnStrip8” ).show();
$w( “#columnStrip4” ).show();
} else {
$w( “#BodyImage2” ).collapse();
$w( “#BodyImage2” ).hide();
$w( “#columnStrip8” ).collapse();
$w( “#columnStrip8” ).hide();
$w( “#columnStrip4” ).collapse();
$w( “#columnStrip4” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.soloImage) {
$w( “#SoloImage” ).show();
$w( “#BlankColumn3” ).show();
$w( “#columnStrip9” ).show();
} else {
$w( “#SoloImage” ).collapse();
$w( “#SoloImage” ).hide();
$w( “#BlankColumn3” ).collapse();
$w( “#BlankColumn3” ).hide();
$w( “#columnStrip9” ).collapse();
$w( “#columnStrip9” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage1Caption) {
$w( “#BodyImage1Caption” ).show();
} else {
$w( “#BodyImage1Caption” ).collapse();
$w( “#BodyImage1Caption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage2Caption) {
$w( “#BodyImage2Caption” ).show();
} else {
$w( “#BodyImage2Caption” ).collapse();
$w( “#BodyImage2Caption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.soloImageCaption) {
$w( “#SoloImageCaption” ).show();
} else {
$w( “#SoloImageCaption” ).collapse();
$w( “#SoloImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.subtitle2) {
$w( “#ColumnStrip9” ).show();
$w( “#BlankColumn4” ).show();
} else {
$w( “#ColumnStrip9” ).collapse();
$w( “#ColumnStrip9” ).hide();
$w( “#BlankColumn4” ).collapse();
$w( “#BlankColumn4” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body2) {
$w( “#ColumnStrip11” ).show();
$w( “#BlankColumn5” ).show();
} else {
$w( “#ColumnStrip11” ).collapse();
$w( “#ColumnStrip11” ).hide();
$w( “#BlankColumn5” ).collapse();
$w( “#BlankColumn5” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.blog2LinkText) {
$w( “#body2Button” ).show();
} else {
$w( “#body2Button” ).collapse();
$w( “#body2Button” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.subtitle3) {
$w( “#ColumnStrip13” ).show();
$w( “#BlankColumn6” ).show();
} else {
$w( “#ColumnStrip13” ).collapse();
$w( “#ColumnStrip13” ).hide();
$w( “#BlankColumn6” ).collapse();
$w( “#BlankColumn6” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body3) {
$w( “#ColumnStrip15” ).show();
$w( “#BlankColumn7” ).show();
} else {
$w( “#ColumnStrip15” ).collapse();
$w( “#ColumnStrip15” ).hide();
$w( “#BlankColumn7” ).collapse();
$w( “#BlankColumn7” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body3LinkText) {
$w( “#body3Button” ).show();
} else {
$w( “#body3Button” ).collapse();
$w( “#body3Button” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.excerpt) {
$w( “#ColumnStrip17” ).show();
$w( “#BlankColumn8” ).show();
} else {
$w( “#ColumnStrip17” ).collapse();
$w( “#ColumnStrip17” ).hide();
$w( “#BlankColumn8” ).collapse();
$w( “#BlankColumn8” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.subtitle4) {
$w( “#ColumnStrip19” ).show();
$w( “#BlankColumn9” ).show();
} else {
$w( “#ColumnStrip19” ).collapse();
$w( “#ColumnStrip19” ).hide();
$w( “#BlankColumn9” ).collapse();
$w( “#BlankColumn9” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body4) {
$w( “#ColumnStrip21” ).show();
$w( “#BlankColumn10” ).show();
} else {
$w( “#ColumnStrip21” ).collapse();
$w( “#ColumnStrip21” ).hide();
$w( “#BlankColumn10” ).collapse();
$w( “#BlankColumn10” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body4LinkText) {
$w( “#body4Button” ).show();
} else {
$w( “#body4Button” ).collapse();
$w( “#body4Button” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage3) {
$w( “#ColumnStrip23” ).show();
$w( “#BlankColumn11” ).show();
} else {
$w( “#ColumnStrip23” ).collapse();
$w( “#ColumnStrip23” ).hide();
$w( “#BlankColumn11” ).collapse();
$w( “#BlankColumn11” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.bodyImage3Caption) {
$w( “#BodyImage3Caption” ).show();
} else {
$w( “#BodyImage3Caption” ).collapse();
$w( “#BodyImage3Caption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body5) {
$w( “#ColumnStrip2” ).show();
$w( “#columnStrip24” ).show();
} else {
$w( “#ColumnStrip2” ).collapse();
$w( “#ColumnStrip2” ).hide();
$w( “#columnStrip24” ).collapse();
$w( “#columnStrip24” ).hide();
}
} );
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.body5LinkText) {
$w( “#body5Button” ).show();
} else {
$w( “#body5Button” ).collapse();
$w( “#body5Button” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody1Title) {
$w( “#columnStrip22” ).show();
$w( “#columnStrip23” ).show();
} else {
$w( “#columnStrip22” ).collapse();
$w( “#columnStrip22” ).hide();
$w( “#columnStrip23” ).collapse();
$w( “#columnStrip23” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody1) {
$w( “#columnStrip19” ).show();
$w( “#columnStrip20” ).show();
} else {
$w( “#columnStrip19” ).collapse();
$w( “#columnStrip19” ).hide();
$w( “#columnStrip20” ).collapse();
$w( “#columnStrip20” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody1LinkText) {
$w( “#ListBody1Button” ).show();
} else {
$w( “#ListBody1Button” ).collapse();
$w( “#ListBody1Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody1Image) {
$w( “#columnStrip21” ).show();
$w( “#columnStrip25” ).show();
} else {
$w( “#columnStrip21” ).collapse();
$w( “#columnStrip21” ).hide();
$w( “#columnStrip25” ).collapse();
$w( “#columnStrip25” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody1ImageCaption) {
$w( “#ListBody1ImageCaption” ).show();
} else {
$w( “#ListBody1ImageCaption” ).collapse();
$w( “#ListBody1ImageCaption” ).hide();
}
} );
$w( "#dynamicDataset" ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody2Title) {
$w( “#columnStrip26” ).show();
$w( “#columnStrip27” ).show();
} else {
$w( “#columnStrip26” ).collapse();
$w( “#columnStrip26” ).hide();
$w( “#columnStrip27” ).collapse();
$w( “#columnStrip27” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody2) {
$w( “#columnStrip28” ).show();
$w( “#columnStrip29” ).show();
} else {
$w( “#columnStrip28” ).collapse();
$w( “#columnStrip28” ).hide();
$w( “#columnStrip29” ).collapse();
$w( “#columnStrip29” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody2LinkText) {
$w( “#ListBody2Button” ).show();
} else {
$w( “#ListBody2Button” ).collapse();
$w( “#ListBody2Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody2Image) {
$w( “#columnStrip30” ).show();
$w( “#columnStrip31” ).show();
} else {
$w( “#columnStrip30” ).collapse();
$w( “#columnStrip30” ).hide();
$w( “#columnStrip31” ).collapse();
$w( “#columnStrip31” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody2ImageCaption) {
$w( “#ListBody2ImageCaption” ).show();
} else {
$w( “#ListBody2ImageCaption” ).collapse();
$w( “#ListBody2ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody3Title) {
$w( “#columnStrip32” ).show();
$w( “#columnStrip33” ).show();
} else {
$w( “#columnStrip32” ).collapse();
$w( “#columnStrip32” ).hide();
$w( “#columnStrip33” ).collapse();
$w( “#columnStrip33” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody3) {
$w( “#columnStrip34” ).show();
$w( “#columnStrip35” ).show();
} else {
$w( “#columnStrip34” ).collapse();
$w( “#columnStrip34” ).hide();
$w( “#columnStrip35” ).collapse();
$w( “#columnStrip35” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody3LinkText) {
$w( “#ListBody3Button” ).show();
} else {
$w( “#ListBody3Button” ).collapse();
$w( “#ListBody3Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody3Image) {
$w( “#columnStrip36” ).show();
$w( “#columnStrip37” ).show();
} else {
$w( “#columnStrip36” ).collapse();
$w( “#columnStrip36” ).hide();
$w( “#columnStrip37” ).collapse();
$w( “#columnStrip37” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody3Caption) {
$w( “#ListBody3ImageCaption” ).show();
} else {
$w( “#ListBody3ImageCaption” ).collapse();
$w( “#ListBody3ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody4Title) {
$w( “#columnStrip38” ).show();
$w( “#columnStrip39” ).show();
} else {
$w( “#columnStrip38” ).collapse();
$w( “#columnStrip38” ).hide();
$w( “#columnStrip39” ).collapse();
$w( “#columnStrip39” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody4) {
$w( “#columnStrip40” ).show();
$w( “#columnStrip41” ).show();
} else {
$w( “#columnStrip40” ).collapse();
$w( “#columnStrip40” ).hide();
$w( “#columnStrip41” ).collapse();
$w( “#columnStrip41” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody4LinkText) {
$w( “#ListBody4Button” ).show();
} else {
$w( “#ListBody4Button” ).collapse();
$w( “#ListBody4Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody4Image) {
$w( “#columnStrip42” ).show();
$w( “#columnStrip43” ).show();
} else {
$w( “#columnStrip42” ).collapse();
$w( “#columnStrip42” ).hide();
$w( “#columnStrip43” ).collapse();
$w( “#columnStrip43” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody4Caption) {
$w( “#ListBody4Caption” ).show();
} else {
$w( “#ListBody4Caption” ).collapse();
$w( “#ListBody4Caption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody5Title) {
$w( “#columnStrip44” ).show();
$w( “#columnStrip45” ).show();
} else {
$w( “#columnStrip44” ).collapse();
$w( “#columnStrip44” ).hide();
$w( “#columnStrip45” ).collapse();
$w( “#columnStrip45” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody5) {
$w( “#columnStrip46” ).show();
$w( “#columnStrip47” ).show();
} else {
$w( “#columnStrip46” ).collapse();
$w( “#columnStrip46” ).hide();
$w( “#columnStrip47” ).collapse();
$w( “#columnStrip47” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody5LinkText) {
$w( “#ListBody5Button” ).show();
} else {
$w( “#ListBody5Button” ).collapse();
$w( “#ListBody5Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody5Image) {
$w( “#columnStrip48” ).show();
$w( “#columnStrip49” ).show();
} else {
$w( “#columnStrip48” ).collapse();
$w( “#columnStrip48” ).hide();
$w( “#columnStrip49” ).collapse();
$w( “#columnStrip49” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody5ImageCaption) {
$w( “#ListBody5ImageCaption” ).show();
} else {
$w( “#ListBody5ImageCaption” ).collapse();
$w( “#ListBody5ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody6Title) {
$w( “#columnStrip50” ).show();
$w( “#columnStrip51” ).show();
} else {
$w( “#columnStrip50” ).collapse();
$w( “#columnStrip50” ).hide();
$w( “#columnStrip51” ).collapse();
$w( “#columnStrip51” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody6) {
$w( “#columnStrip52” ).show();
$w( “#columnStrip53” ).show();
} else {
$w( “#columnStrip52” ).collapse();
$w( “#columnStrip52” ).hide();
$w( “#columnStrip53” ).collapse();
$w( “#columnStrip53” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody6LinkText) {
$w( “#ListBody6Button” ).show();
} else {
$w( “#ListBody6Button” ).collapse();
$w( “#ListBody6Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody6Image) {
$w( “#columnStrip54” ).show();
$w( “#columnStrip55” ).show();
} else {
$w( “#columnStrip54” ).collapse();
$w( “#columnStrip54” ).hide();
$w( “#columnStrip55” ).collapse();
$w( “#columnStrip55” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody6Caption) {
$w( “#ListBody6ImageCaption” ).show();
} else {
$w( “#ListBody6ImageCaption” ).collapse();
$w( “#ListBody6ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody7Title) {
$w( “#columnStrip56” ).show();
$w( “#columnStrip57” ).show();
} else {
$w( “#columnStrip56” ).collapse();
$w( “#columnStrip56” ).hide();
$w( “#columnStrip57” ).collapse();
$w( “#columnStrip57” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody7) {
$w( “#columnStrip58” ).show();
$w( “#columnStrip59” ).show();
} else {
$w( “#columnStrip58” ).collapse();
$w( “#columnStrip58” ).hide();
$w( “#columnStrip59” ).collapse();
$w( “#columnStrip59” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody7LinkText) {
$w( “#ListBody7Button” ).show();
} else {
$w( “#ListBody7Button” ).collapse();
$w( “#ListBody7Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody7Image) {
$w( “#columnStrip60” ).show();
$w( “#columnStrip61” ).show();
} else {
$w( “#columnStrip60” ).collapse();
$w( “#columnStrip60” ).hide();
$w( “#columnStrip61” ).collapse();
$w( “#columnStrip61” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody7ImageCaption) {
$w( “#ListBody7ImageCaption” ).show();
} else {
$w( “#ListBody7ImageCaption” ).collapse();
$w( “#ListBody7ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody8Title) {
$w( “#columnStrip62” ).show();
$w( “#columnStrip63” ).show();
} else {
$w( “#columnStrip62” ).collapse();
$w( “#columnStrip62” ).hide();
$w( “#columnStrip63” ).collapse();
$w( “#columnStrip63” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody8) {
$w( “#columnStrip64” ).show();
$w( “#columnStrip65” ).show();
} else {
$w( “#columnStrip64” ).collapse();
$w( “#columnStrip64” ).hide();
$w( “#columnStrip64” ).collapse();
$w( “#columnStrip64” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody8LinkText) {
$w( “#ListBody8Button” ).show();
} else {
$w( “#ListBody8Button” ).collapse();
$w( “#ListBody8Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody8Image) {
$w( “#columnStrip66” ).show();
$w( “#columnStrip67” ).show();
} else {
$w( “#columnStrip66” ).collapse();
$w( “#columnStrip66” ).hide();
$w( “#columnStrip67” ).collapse();
$w( “#columnStrip67” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody8ImageCaption) {
$w( “#ListBody8ImageCaption” ).show();
} else {
$w( “#ListBody8ImageCaption” ).collapse();
$w( “#ListBody8ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody9Title) {
$w( “#columnStrip68” ).show();
$w( “#columnStrip69” ).show();
} else {
$w( “#columnStrip68” ).collapse();
$w( “#columnStrip68” ).hide();
$w( “#columnStrip69” ).collapse();
$w( “#columnStrip69” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody9) {
$w( “#columnStrip70” ).show();
$w( “#columnStrip71” ).show();
} else {
$w( “#columnStrip70” ).collapse();
$w( “#columnStrip70” ).hide();
$w( “#columnStrip71” ).collapse();
$w( “#columnStrip71” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody9LinkText) {
$w( “#ListBody9Button” ).show();
} else {
$w( “#ListBody9Button” ).collapse();
$w( “#ListBody9Button” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody9Image) {
$w( “#columnStrip72” ).show();
$w( “#columnStrip73” ).show();
} else {
$w( “#columnStrip72” ).collapse();
$w( “#columnStrip72” ).hide();
$w( “#columnStrip73” ).collapse();
$w( “#columnStrip73” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody9ImageCaption) {
$w( “#ListBody9ImageCaption” ).show();
} else {
$w( “#ListBody9ImageCaption” ).collapse();
$w( “#ListBody9ImageCaption” ).hide();
}
} );
$w( “#dynamicDataset” ).onReady( () => {
let item = $w( “#dynamicDataset” ).getCurrentItem();
if (item.listBody10Title) {
$w( “#columnStrip74” ).show();
$w( “#columnStrip75” ).show();
} else {
$w( “#columnStrip74” ).collapse();
$w( “#columnStrip74” ).hide();
$w( “#columnStrip75” ).collapse();
$w( “#columnStrip75” ).hide();
}
} );
} );
(code carries on but is too long to pos here)