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