feat(15-02): add Posts admin with mlmarkdown and FormatHTML
YAML-driven Posts screen stores translatable markdown and regenerates content_html in the plugin. Publish writes without access_publish are refused; list and form queries stay on the principal without access_other_posts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
26
controllers/posts/config_list.yaml
Normal file
26
controllers/posts/config_list.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
list: ~/plugins/golem15/journal/models/post/columns.yaml
|
||||
modelClass: Golem15\Journal\Models\Post
|
||||
title: golem15.journal::lang.post.label_plural
|
||||
recordUrl: golem15/journal/posts/update/:id
|
||||
noRecordsMessage: backend::lang.list.no_records
|
||||
recordsPerPage: 25
|
||||
showCheckboxes: true
|
||||
showSetup: true
|
||||
showSorting: true
|
||||
filter: config_filter.yaml
|
||||
|
||||
defaultSort:
|
||||
column: published_at
|
||||
direction: desc
|
||||
|
||||
toolbar:
|
||||
buttons: [create, delete]
|
||||
search:
|
||||
prompt: backend::lang.list.search_prompt
|
||||
|
||||
messages:
|
||||
create: golem15.journal::lang.posts.new_post
|
||||
empty: backend::lang.list.no_records
|
||||
deleteConfirm: golem15.journal::lang.post.delete_confirm
|
||||
deleted: backend::lang.messages.list.deleted
|
||||
rowStateDisabled: golem15.journal::lang.journal.chart_drafts
|
||||
Reference in New Issue
Block a user