Add static, unique, content to a single dynamic page

No, it’s based on the same boolean - If we go through the logic:
IF showStatic THEN expand the hidden static contents and collapse the normal dynamic content (Or however you’d prefer to call those sections of course)

Now, I’m not sure what you meant about your misunderstanding of “collapsed by default”, but I’ll describe them a little just in case, you can decide which one would suit your needs better

  • Collapse eliminates the element from rendering on the page, which rearranges other items as if it was never there. It is reversed via expand.
  • Hide still retains the space that the element would’ve taken had it been rendered. And it is reversed via show.

Since you’re using sections, expand/collapse are probably the better method for you to use

$w('#dynamicDataset').onReady(() => {
    const item = $w('#dynamicDataset').getCurrentItem()
    if (item.showStatic) {
        $w('#staticContent').expand()
        $w('#dynamicContent').collapse()
    }
})

The code block within the {} is executed if the statement in if (), i.e. the showStatic boolean, is true