update by group

This commit is contained in:
Kerim 2022-12-18 17:08:08 +05:00
parent bd707d8c2e
commit 927d2eaa17
1 changed files with 5 additions and 6 deletions

View File

@ -8,7 +8,7 @@ robot_follow = "follow"
[blogPosts]
pageNumber = "{{ :page }}"
categoryFilter = "{{ :slug }}"
Group Filter = "{{ :categoryGroup }}"
categoryGroup = "{{ :categoryGroup }}"
postsPerPage = 10
noPostsMessage = "No posts found"
sortOrder = "published_at desc"
@ -16,12 +16,12 @@ categoryPage = "new/category"
postPage = "new/newPost"
==
<?php
//function onStart(){
function onStart(){
//$this['backendUsers'] = Backend\Models\User::all();
// $this['group'] = $this->param('categoryGroup');
// $this['groupName'] = RainLab\Blog\Models\CategoryGroup::where('slug', $this['group'])->first();
$this['group'] = $this->param('categoryGroup');
$this['groupName'] = RainLab\Blog\Models\CategoryGroup::where('slug', $this['group'])->first();
//dd( $this['groupName']);
//}
}
?>
==
<!-- HEAD end ======== -->
@ -30,7 +30,6 @@ postPage = "new/newPost"
<div class="rubric-inner">
<div class="trending-head">
<h2>{% if category.name != "" %}{{category.name}}{% else %} {{ groupName.name }} {% endif %}</h2>
<!-- <h2>{{ group }}</h2> -->
<span></span>
</div>