Hi,
I’m working on Editor X for an art gallery, I have two issues when concatenate two fields with this code. (database: artists, exhibitions, artworks, news)
- I try to add a reference field (and potentially multi-reference field in case of a group show with multiple artists). It’s showing the ID and not the content.
Based on my research, I’m supposed to use the function include() but don’t know how to integrate in my actual code.
https://www.wix.com/velo/forum/community-discussion/reference-fields-in-dataset
- When using Date fields, It’s showing the entire data, I’m looking to format it as “Day, Date, Month, Year”?
Here is the code:
$w.onReady( function () {
// Write your JavaScript here
$w( “#repeater1” ).onItemReady( ($item, itemData, index) => {
$item( "#text25" ).text = itemData.title + " " + "–" + " " + itemData.artist;
$item( "#text28" ).text = itemData.dateStart + " " + "–" + " " + itemData.dateEnd;
// Click “Preview” to run your code
} );
} );
Here is the result:
Any help would be really appreciate.
