Skip to content

Commit

Permalink
Added ability to specify the post's user
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Towers committed Aug 1, 2019
1 parent 816ddb2 commit 7d030af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'updated' => 'Updated',
'updated_date' => 'Updated date',
'published' => 'Published',
'published_by' => 'Published by',
'published_date' => 'Published date',
'published_validation' => 'Please specify the published date',
'tab_edit' => 'Edit',
Expand Down
7 changes: 7 additions & 0 deletions models/post/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ secondaryTabs:
span: left
type: checkbox

user:
tab: rainlab.blog::lang.post.tab_manage
label: rainlab.blog::lang.post.published_by
span: right
type: relation
nameFrom: login

published_at:
tab: rainlab.blog::lang.post.tab_manage
label: rainlab.blog::lang.post.published_on
Expand Down

0 comments on commit 7d030af

Please sign in to comment.