The {is_leaf} TAG returns whether an item has children or not. This tag returns only useful information for menu items.

-> Since BIGACE 2.5.


  • item - (required, Item) The item to fetch information for. See examples.

  • assign - (optional, string) The name of the template variable the boolean will be assigned to. If not set, the boolean will be returned.


This example demonstrates how to check if the current page has children.

   {is_leaf item=$MENU assign="hasChildren"}
   {if $hasChildren}
     The current menu has children!
     The current menu has no children!