Permalink
Browse files

Merge pull request mugoweb#4 from blankse/main_node_only

Show main nodes only
  • Loading branch information...
peterkeung committed Oct 25, 2018
2 parents 00f75ea + 5ab2c46 commit 01c7dded060aee73d452a7fa18f3001da210be16
Showing with 10 additions and 11 deletions.
  1. +10 −11 design/admin/templates/contentclassmanager/view.tpl
@@ -18,16 +18,15 @@ Expected Variables:
{set $ascending='true'}
{/if}
{def $nodes = fetch( 'content','tree',
hash('parent_node_id',1,
'sort_by',array( $sort_by, $sort_asc ),
'offset',$offset,
'limit',$items_per_page,
'class_filter_type', 'include',
'class_filter_array', array( $class_object.identifier ))
)}
{def $nodes = fetch( 'content', 'tree', hash(
'parent_node_id', 1,
'sort_by', array( $sort_by, $sort_asc ),
'offset', $offset,
'limit', $items_per_page,
'class_filter_type', 'include',
'class_filter_array', array( $class_object.identifier ),
'main_node_only', true()
) )}
<div class="box-header">
<div class="box-ml">
{if $class_object | is_null()}
@@ -170,4 +169,4 @@ Expected Variables:
item_limit=$items_per_page}
{else}
There are no content objects of this content class
{/if}
{/if}

0 comments on commit 01c7dde

Please sign in to comment.