You still do not provide enough information.
What we know already?
-You are working on a → DYNAMIC-APGE!
-You also have a REPEATER on your → DYNAMIC-PAGE.
-Surely your whole setup is running by DATASET-CONNECTIONS and some setup inside of the PROPERTY-PANEL.
Here you spoke about —>
Can I use the html property and pass the variables MY_TEXT and MY_LINK (from the CMS) somehow?
Is that a FIELD inside of your DATABASE, where you have stored HTML-code?
You should give more details about how your page have been setted-up, since anybody can see what you already have done.
You also did not provide any code. Do you have already generated some code, or was my assumtion right and you did use → datasets and setup inside of the property-panel only?
Also your repeater will surely be connected to another dataset (non-dynamic), is that right? → That means 2 different databases are involved?
So, now we should pay attention!!!
DYNAMIC-PAGE means → it will show data for 1-item only at once.
Inside your repeater you can show your whole items, which are stored inside of your database (to which ever database your repeater is connected). The repeater is surely not connected to the dynamic-dataset, isn’t it?
Maybe you want provide more infos first? Maybe you even first want to provide a pic of your setup?
There are to many open questions.
$w.onReady(()=>{
$w('#dynamicDataset').onReady(()=>{
const curItem = $w('#dynamicDataset').getCurrentItem(); console.log(curItem);
const title = curItem.title; console.log('Title: ', title);
const ownerID = curItem._owner; console.log('Owner-ID: ', ownerID);
// add more code here........
});
});
This little example should show you your current selected item on your dynamic page.
You will see all results inside of your → CONSOLE!