I’ve used dynamic pages on my own collections in the past and was able to merge multiple fields into one text element along the lines of:-
$w.onReady(()=>{
$w('#myDataset').onReady(()=>{
const thisItem = $w('#myDataset').getCurrentItem();
$w('#textElement').text = '${thisItem.firstField}/${thisItem.secondField}/${thisItem.thirdField}`;
});
});
I’m now trying to put together a dynamic page for Events. For fields that I don’t need to merge I’ve simply linked them to the events dataset but for some elements I need to massage the information with Velo code.
I’ve accomplished it in a repeater
$w("#repeater2").onItemReady( ($item, itemData, index) => {
$item('#eventTitle').text = '$(itemData.title / $(itemData.locationName)`;
} );
but how do I do it for an element in a dynamic page for the events collection?