I’m trying to setup the plugin add by form to configure a way to write posts of blog from frontend.
I’ve read the plugin documentation and I’ve got to configure correctly it, but I’d like that the new posts were saved unpublished.
My code is this:
title: 'Add post' template: addpage pageconfig: parent: /blog include_username: false overwrite_mode: true pagefrontmatter: template: item title: 'New post' taxonomy: category: blog form: name: addpage.blogpost fields: - name: title label: Title type: text validate: required: true - name: metadata.description label: Description type: text validate: required: true - name: metadata.author label: Author type: text validate: required: true - name: taxonomy.tag label: 'Tags' type: text validate: required: true - name: content label: 'Post Content' type: textarea size: long classes: editor validate: required: true - name: honeypot type: honeypot buttons: - type: submit value: Submit process: - addpage: null - redirect: /blog access: site.login: true
I’ve tried this:
- name: published type: toggle disabled: true default: false label: 'Published' highlight: 1 options: 1: 'Si' 0: 'No' validate: type: bool
I don’t know if this is possible from the .md file, but others fields, such as metadata.title or metadata.author works fine.
Thanks in advance