update by group
This commit is contained in:
parent
bd707d8c2e
commit
927d2eaa17
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue