layout_create
Create a new layout or component in Voog CMS. Specify kind ('layout' for full templates, 'component' for partials) and provide title and body.
Instructions
Create a new layout or component (POST /layouts). kind='layout' for full templates (defaults content_type='page'; use 'blog_article' for blog post templates); kind='component' for shared partials (content_type ignored). Returns the new id. NOT idempotent — calling twice creates two separate layouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from voog_list_sites | |
| title | Yes | Layout title (no '/', '\', or leading '.') | |
| body | Yes | Liquid template source code (.tpl content) | |
| kind | Yes | 'layout' for full pages, 'component' for partials | |
| content_type | No | Layout content_type — only sent when kind='layout'. 'page' (default) for full page templates; 'blog_article' for individual post templates; 'blog' for blog index. Ignored for components. | page |