-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
duplicatestatus: confirmedtype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Per Collection Media Folder Always leave the Images Not Deleted...
Therefore It Remained in the Folder and only the index.md is deleted when you delete a post entry.
My Config
- name: "blog"
identifier_field: title
label: "Blog"
label_singular: "Post"
folder: "exampleSite/content/blog"
filter: { field: "index", value: false }
path: "{{slug}}/index" # used for bundled post
create: true
media_folder: "resources"
public_folder: "blog/{{slug}}/resources"
# show_preview_links must be set to true show preview_path
preview_path: "blog/{{fields.slug}}"
editor:
preview: false
fields:
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Draft", name: "draft", widget: "boolean", default: false }
- { label: "Title", name: "title", widget: "string" }
- { label: "Slug", name: "slug", widget: "hidden" }
- { label: "Description", name: "description", widget: "string" }
- { label: "Featured Image", name: "featured_image", widget: image }
- label: Resources
name: resources
widget: list
required: false
fields:
- label: "Image"
name: "src"
widget: "image"
- label: "Name"
name: "name"
widget: "string"
- { label: "Content", name: "body", widget: "markdown" }Is there a possibility to use the CMS EVENTS ?
is there a onDelete event where in you can ask specify to delete also the folder and the image
Metadata
Metadata
Assignees
Labels
duplicatestatus: confirmedtype: bugcode to address defects in shipped codecode to address defects in shipped code