答案 0 :(得分:0)
Take a peek how RainLab.Blog plugin does it:
Posts controller: https://github.com/rainlab/blog-plugin/blob/master/controllers/Posts.php
Post toolbar partial: https://github.com/rainlab/blog-plugin/blob/master/controllers/posts/_post_toolbar.htm
Post field definitions: https://github.com/rainlab/blog-plugin/blob/master/models/post/fields.yaml