Skip to content

Commit

Permalink
Main Node Only
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Oct 25, 2018
1 parent 00f75ea commit 5ab2c46
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions design/admin/templates/contentclassmanager/view.tpl
Expand Up @@ -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()}
Expand Down Expand Up @@ -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 5ab2c46

Please sign in to comment.