Collection and entry data concepts for Built.js themes and plugins.
An Entry is a database record in a collection, like a single blog post, an author, or a product. When you create a theme or plugin through the Built Studio, before you can create an entry, you will need to create a content type, which defines the fields for entries.
When you export a theme or plugin and Next.js theme project (see "Creating a new theme"), you can find entry data in public/data/collections/[content-type-plural-name].json.
In this code, "profile" is a reference to another entry and this can be populated, or "expanded" if you need to access the data in a section template. This is how you can make this "authors" collection data available in a section:
The "article" property in this code indicates that an article page should be available for this collection (the "authorArticle" is a ModulePage that defines the page and sections needed for the article.
This is how the entries can be used in a React component, "ProfileCards1", which is a template for the "team" section:
And because the article was specified, the we can have an article page in pages/author/[slug].tsx and the entry will be available to any section templates in the page. In the following code, "ProfileArticle1" is a React component for a section template on the "authorArticle" page.