import wixData from 'wix-data';
$w.onReady(function () {
// Query the 'news' collection
wixData.query('news')
.find()
.then((results) => {
// Structure the data into RSS XML format
const items = results.items.map(item => `
-
${item.title}
`).join('');
const rss = `
News RSS Feed
https://www.stmaryswaynepa.org/chimes-rss
Latest news updates
${items}
`;
// Serve the RSS XML content
$w('#rssContent').html = rss;
})
.catch((err) => {
console.error('Error retrieving news:', err);
});
});
top of page
bottom of page