unite cms domain recipes

unite cms comes with a very special feature: Instead of clicking through endless UI to define your content schema, a single JSON document holds all of your config together. Here you find a collection of ready-to-use recipes to start right away.

How to use: Just copy a recipe, create a new domain and paste it in the unite cms domain editor.

How to contribute: Just fork unite-cms/recipes and open a PR.

Simple Blog

Simple blog

A very simple blog that defins an article content type with an image.

This blog is used in the tutorial: Create a blog using unite cms + vue.js.

result

Note about the image field

In order to make image uploading work, you must replace the dummy s3 bucket configiguration with a real bucket.

{
    "title": "Simple Blog",
    "identifier": "simple_blog",
    "content_types": [
        {
            "title": "Articles",
            "identifier": "articles",
            "content_label": "{headline}",
            "fields": [
                {
                    "title": "Headline",
                    "identifier": "headline",
                    "type": "text"
                },
                {
                    "title": "Image",
                    "identifier": "image",
                    "type": "image",
                    "settings": {
                        "bucket": {
                            "endpoint": "https:\/\/endpoint.example",
                            "bucket": "XXX",
                            "key": "XXX",
                            "secret": "XXX"
                        }
                    }
                },
                {
                    "title": "Content",
                    "identifier": "content",
                    "type": "wysiwyg",
                    "settings": {
                        "heading": [
                            "h2",
                            "h3",
                            "p"
                        ]
                    }
                }
            ],
            "views": [
                {
                    "title": "All",
                    "identifier": "all",
                    "type": "table",
                    "settings": {
                        "columns": {
                            "headline": "Headline",
                            "created": "Created at"
                        }
                    }
                }
            ]
        }
    ],
    "setting_types": [
        {
            "title": "Website",
            "identifier": "website",
            "fields": [
                {
                    "title": "Title",
                    "identifier": "title",
                    "type": "text"
                },
                {
                    "title": "Footer Text",
                    "identifier": "footer_text",
                    "type": "wysiwyg"
                },
                {
                    "title": "About Text",
                    "identifier": "about_text",
                    "type": "wysiwyg"
                }
            ]
        }
    ]
}