How can i add static content in dynamic page?

I guess that there is a answer somewhere - unfortunately I didn’t find it.
I have a dynamic page, and I want to add a specific content in certain item.

How can i do it? Every content which i add in the dynamic page, appears all items.

thanks
Netanel

1 Like

Place the static content on your repeater then use code to hide the static content on the containers that you don’t want it to appear on. Create a new fieldKey in your collection to detail whither the static content should be hidden for each item in your collection.

$w.onReady( function () {

//change below variable ids as necessary

    $w("#dataset1").onReady(() => { 


        $w("#repeater1").forEachItem(($w) => { 

let checkIfItemShouldBeHidden = $w(“#dataset1”).getCurrentItem().fieldIdThatYouWantToUse;

            console.log(checkIfItemShouldBeHidden); 

if (checkIfItemShouldBeHidden === “hide this one”){

                $w("#staticContentId").hide(); 

            } 




        }) 

}) 

})