Takes two parameters, FieldBase, FieldNamesList


Use EnsureNavFields to Ensure the list of Fields that the HtmlNavbar and HtmlNav command uses exist in the Query. Typically, you would have setup the Query to contain all of the information you wish to use to build a menu with ahead of time, then call EnsureNavFields, and then Set or Build your data into each of the Nav Fields. At the moment, the fields are:

Once you have a Query with the above Fields in it and all of the values set as you wish, use the HtmlNav or HtmlNavbar commands to place the Nav on the page.


See EnsureFields