Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Mar 18, 2022
1 parent 15f8ec5 commit 19ae29f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion controllers/categories/config_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ===================================

name: rainlab.blog::lang.blog.create_category
form: ~/plugins/rainlab/blog/models/category/fields.yaml
form: $/rainlab/blog/models/category/fields.yaml
modelClass: RainLab\Blog\Models\Category
defaultRedirect: rainlab/blog/categories

Expand Down
2 changes: 1 addition & 1 deletion controllers/categories/config_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ===================================

# Model List Column configuration
list: ~/plugins/rainlab/blog/models/category/columns.yaml
list: $/rainlab/blog/models/category/columns.yaml

# Model Class name
modelClass: RainLab\Blog\Models\Category
Expand Down
2 changes: 1 addition & 1 deletion controllers/posts/config_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ===================================

name: rainlab.blog::lang.blog.create_post
form: ~/plugins/rainlab/blog/models/post/fields.yaml
form: $/rainlab/blog/models/post/fields.yaml
modelClass: RainLab\Blog\Models\Post
defaultRedirect: rainlab/blog/posts

Expand Down
8 changes: 4 additions & 4 deletions controllers/posts/config_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# ===================================

# Model List Column configuration
list: ~/plugins/rainlab/blog/models/post/columns.yaml
list: $/rainlab/blog/models/post/columns.yaml

# Filter widget configuration
filter: $/rainlab/blog/models/post/scopes.yaml

# Model Class name
modelClass: RainLab\Blog\Models\Post
Expand Down Expand Up @@ -42,6 +45,3 @@ toolbar:
# Search widget configuration
search:
prompt: backend::lang.list.search_prompt

# Filter widget configuration
filter: config_filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ scopes:
- published <> '1'
- published = '1'

published_date:
created_at:

# Filter name
label: rainlab.blog::lang.posts.filter_date
Expand Down

0 comments on commit 19ae29f

Please sign in to comment.