permissions and img source

This commit is contained in:
Kerim 2023-01-10 16:22:27 +05:00
parent 4806e4d8a9
commit d9be37cf6a
6 changed files with 52 additions and 5 deletions

View File

@ -45,6 +45,7 @@ class Post extends Model
'excerpt' => 'required',
'category_groups' => 'required',
'awtor' => 'required',
'img_source' => 'required'
];
/**

View File

@ -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'

View File

@ -0,0 +1,23 @@
<?php namespace RainLab\Blog\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateRainlabBlogPosts18 extends Migration
{
public function up()
{
Schema::table('rainlab_blog_posts', function($table)
{
$table->string('img_source')->nullable();
});
}
public function down()
{
Schema::table('rainlab_blog_posts', function($table)
{
$table->dropColumn('img_source');
});
}
}

View File

@ -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

View File

@ -9,6 +9,8 @@ navigation:
label: Reklama
url: tps/reklama/groupscontroller
icon: icon-empire
permissions:
- reklama
sideMenu:
side-menu-item:
label: Groups

View File

@ -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