diff --git a/plugins/rainlab/blog/models/Post.php b/plugins/rainlab/blog/models/Post.php index 5d2c37802..f923139c6 100644 --- a/plugins/rainlab/blog/models/Post.php +++ b/plugins/rainlab/blog/models/Post.php @@ -45,6 +45,7 @@ class Post extends Model 'excerpt' => 'required', 'category_groups' => 'required', 'awtor' => 'required', + 'img_source' => 'required' ]; /** diff --git a/plugins/rainlab/blog/models/post/fields.yaml b/plugins/rainlab/blog/models/post/fields.yaml index f0a49f5ef..dc87c69ac 100644 --- a/plugins/rainlab/blog/models/post/fields.yaml +++ b/plugins/rainlab/blog/models/post/fields.yaml @@ -67,6 +67,7 @@ secondaryTabs: author_name: label: 'Author Name' span: auto + hidden: 1 dependsOn: - awtor type: text @@ -77,6 +78,11 @@ secondaryTabs: type: checkbox comment: 'не отмечать если не нужно выставлять на слайдере' tab: 'rainlab.blog::lang.post.tab_manage' + on_morque: + label: 'Бегущая строка' + span: right + type: checkbox + tab: 'rainlab.blog::lang.post.tab_manage' published_at: tab: 'rainlab.blog::lang.post.tab_manage' label: 'rainlab.blog::lang.post.published_on' @@ -96,13 +102,14 @@ secondaryTabs: excerpt: label: 'rainlab.blog::lang.post.excerpt' size: small - span: left + span: auto type: textarea tab: 'rainlab.blog::lang.post.tab_manage' - on_morque: - label: 'Бегущая строка' - span: auto - type: checkbox + img_source: + label: 'Image Source' + span: left + required: 1 + type: text tab: 'rainlab.blog::lang.post.tab_manage' featured_image: label: 'Featured image' diff --git a/plugins/rainlab/blog/updates/builder_table_update_rainlab_blog_posts_18.php b/plugins/rainlab/blog/updates/builder_table_update_rainlab_blog_posts_18.php new file mode 100644 index 000000000..a024d9f19 --- /dev/null +++ b/plugins/rainlab/blog/updates/builder_table_update_rainlab_blog_posts_18.php @@ -0,0 +1,23 @@ +string('img_source')->nullable(); + }); + } + + public function down() + { + Schema::table('rainlab_blog_posts', function($table) + { + $table->dropColumn('img_source'); + }); + } +} diff --git a/plugins/rainlab/blog/updates/version.yaml b/plugins/rainlab/blog/updates/version.yaml index 473ed4a70..fb30b89c5 100644 --- a/plugins/rainlab/blog/updates/version.yaml +++ b/plugins/rainlab/blog/updates/version.yaml @@ -171,3 +171,6 @@ 1.5.37: - 'Updated table rainlab_blog_posts' - builder_table_update_rainlab_blog_posts_17.php +1.5.38: + - 'Updated table rainlab_blog_posts' + - builder_table_update_rainlab_blog_posts_18.php diff --git a/plugins/tps/reklama/plugin.yaml b/plugins/tps/reklama/plugin.yaml index 186271717..f8d351d83 100644 --- a/plugins/tps/reklama/plugin.yaml +++ b/plugins/tps/reklama/plugin.yaml @@ -9,6 +9,8 @@ navigation: label: Reklama url: tps/reklama/groupscontroller icon: icon-empire + permissions: + - reklama sideMenu: side-menu-item: label: Groups diff --git a/plugins/tps/tps/plugin.yaml b/plugins/tps/tps/plugin.yaml index 9ac05ef6b..671e6fe11 100644 --- a/plugins/tps/tps/plugin.yaml +++ b/plugins/tps/tps/plugin.yaml @@ -9,8 +9,19 @@ navigation: label: 'Media Category' url: tps/tps/media icon: icon-film + permissions: + - media.media sideMenu: side-menu-item: label: Authors url: tps/tps/authors icon: icon-users + permissions: + - media.authors +permissions: + media.media: + tab: Media + label: Media + media.authors: + tab: Authors + label: Authors