-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b83805
commit f1e4f0a
Showing
13 changed files
with
652 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
title: Live Preview | ||
icon: i-ri-presentation-fill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
title: Content Translator | ||
icon: i-ri-translate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: Getting Started | ||
description: The Kirby Headless plugin enhances your Kirby site with headless capabilities. | ||
--- | ||
|
||
## Introduction | ||
|
||
This plugin is designed for developers who want to use Kirby's backend to serve content to a frontend application, static site generator, or mobile application. You can either add headless functionality to your existing Kirby site, or use this plugin to build a headless-first CMS from scratch. | ||
|
||
::callout{icon="i-ri-information-line"} | ||
Check out to the [Kirby Headless Starter](https://github.com/johannschopplich/kirby-headless-starter) repository for a ready-to-use headless-only setup! | ||
:: | ||
|
||
## Key Features | ||
|
||
- 🧩 Optional bearer token authentication for [KQL](/docs/headless/usage#kirby-query-language-kql) and custom API endpoints | ||
- 🧱 Resolve fields in blocks: [UUIDs to file and page objects](/docs/headless/field-methods) or [any other field](/docs/headless/field-methods) | ||
- ⚡️ Cached KQL queries | ||
- 🌐 Multi-language support for KQL queries | ||
- 😵 Built-in CORS handling | ||
- 🍢 Express-esque [API builder](/docs/headless/api-builder) with middleware support | ||
- 🗂 Return [JSON from templates](/docs/headless/usage#json-templates) instead of HTML | ||
|
||
## Installation | ||
|
||
### Composer | ||
|
||
The recommended way to install the plugin is via Composer. To install the plugin, run the following command in your terminal: | ||
|
||
```bash | ||
composer require johannschopplich/kirby-content-translator | ||
``` | ||
|
||
### Download | ||
|
||
Head over to the [releases page](https://github.com/johannschopplich/kirby-headless/releases) and download the latest version of the plugin as a ZIP file. Extract the contents of this ZIP file to your `site/plugins` folder. It should look like this: | ||
|
||
``` | ||
site/plugins/ | ||
├─ kirby-headless/ | ||
│ └─ … Plugin files | ||
``` | ||
|
||
## Setup | ||
|
||
Nothing to do here! The plugin is ready to use out of the box. If you want to customize the plugin, you can do so by [configuring it](/docs/headless/usage). | ||
|
||
::callout{icon="i-ri-information-line"} | ||
By default, Kirby Headless doesn't interfere with Kirby's default routing. Thus, it won't affect your existing routes or templates. | ||
:: |
Oops, something went wrong.