Entries | Flextype

Entries

Entries are the fundamental building-blocks of your project. We are using jekyll like entries format, it means that each entry in the Flextype should contains Entry Front Matter block in valid YAML format at the top of the file and Entry Content marked up using HTML + Markdown + Shortcodes and etc... at the bottom of the file.

Here is a basic example:

project/entries/my-entry/entry.md
---
title: My Entry
description: My entry description
---
My entry content.

Between triple-dashed lines, you can set predefined variables or even create custom ones of your own.

When you will fetch entry above with Content APIs, data will looks like this:

{
  "data": {
      "title": "My Entry",
      "description": "My entry description",
      "content": "My entry content."
  }
}

Topics

Language: en, ru Version: 0.9.8 | 0.9.7