Skip to content
Permalink
Browse files

added support page

  • Loading branch information...
zolamk committed Sep 26, 2018
1 parent 6cf33ff commit 01efe7e46a669b0de251beefbf803a395d6bfc96
@@ -15,6 +15,7 @@ collections:
tabs:
- label: Basic
fields:
- {label: Draft, name: draft, widget: boolean, default: true}
- {label: Title, name: title, widget: string}
- {label: Publish Date, name: date, widget: datetime, format: "Z"}
- label: Body
@@ -78,6 +78,29 @@ Hooks allow you to be notified when certain actions occur in Saleina CMS, it all

- `deleted`: Accepts a url to be notified when an item in a file or folder collection is deleted, it sends the deleted data with `DELETE` method.

**Example:**

```yaml
collections:
- label: "Blog"
name: "blog"
folder: "website/content/blog"
delete: true
hooks:
created: "https://example.com/blog/" # url to be called when a new blog post is created
updated: "https://example.com/blog/" # url to be called when a blog post is updated
deleted: "https://example.com/blog/" # url to be called when a blog post is deleted
tabs:
- label: "Basic"
fields:
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", format: "Z"}
- label: "Body"
fields:
- {label: "Body", name: "body", widget: "markdown"}
```

**Example data:**

```json
No changes.
@@ -13,6 +13,7 @@
<ul id="sub-nav">
<li><a href="/docs/introduction/">docs</a></li>
<li><a href="/blog/">blog</a></li>
<li><a href="/support/">support us</a></li>
</ul>
<button disabled>demo - coming soon</button>
</div>

0 comments on commit 01efe7e

Please sign in to comment.
You can’t perform that action at this time.