Hello @jonroberts ,
You can use the contentResource.getById method to get the content data for a specific page. You will need to pass the content's ID as a parameter. For example:
umbraco.resources.contentResource.getById(contentId)
.then(function(data) {
// Handle the retrieved content data here
});
replace contentId with the actual ID of the page you want to retrieve content for.
Once you have retrieved the content data, you can access the custom properties using the property aliases. The custom property values are stored in the properties object within the content data.
For example, if you have a custom property with the alias "customPropertyAlias," you can access its value like this:
var customPropertyValue = data.properties.customPropertyAlias;
Replace "customPropertyAlias" with the alias of the custom property you want to access.