/** @type {Enterspeed.FullSchema} */
export default {
triggers: function(context) {
context.triggers('cms', ['blogPost'])
},
routes: function(sourceEntity, context) {
context.url(sourceEntity.url)
},
properties: function ({properties: p}) {
return {
title: p.title,
publishedOn: p.publishedOn,
metaDescription: p.metaDescription,
metaTitle: p.metaTitle,
article: p.article,
}
}
}
Design your content using our low-code schema designer
Our schema designer gives you complete flexibility. Start by choosing which source entity type(s) you want to use. Next, if you want to fetch it via URL or handle. Lastly, choose what content you want to use and how it should look.
Don't want to map out the content? No problem. Our dynamic mapping feature makes it possible to grab all the content from the source entity – even new that gets added down the road.
If you want to see how your content is going to look, you can use our "Test schema" feature. Select a source entity you want to test and hit the Test button.
Our JavaScript based schema language makes it easy for both frontend and backend developers to use. Besides being well documented in our docs, the API is also available through IntelliSense right in the editor where you are working.
CMS, PIM, and Ecommerce data all in one view? You got it.
Working with multiple data sources can be a pain to do in a performance-friendly way. Usually, it requires multiple API calls which spikes up the latency.
Enterspeed solves this problem by combining your data sources into a single view – reducing the number of API calls to just one.
Simply add more data sources to the "triggers" object. Each time the data changes from one of your data sources, a new view will be generated almost instantaneously.
Easy, flexible, and extremely fast.
Ingest from any system. Transform it how you like. Deliver with blazing speed.
/** @type {Enterspeed.FullSchema} */
export default {
triggers: function(context) {
context.triggers('cms', ['home'])
},
routes: function(sourceEntity, context) {
context.url(sourceEntity.url)
},
properties: function ({type, properties: p}, context) {
return {
type: type,
heroHeader: p.heroHeader,
heroDescription: p.heroDescription,
heroCTACaption: p.heroCTACaption,
heroCTALink: context.reference('link').byOriginId(p.heroCtalink)
}
}
}
© 2020 - 2024 Enterspeed A/S. All rights reserved.
Made with ❤️ and ☕ in Denmark.