As a designer, I need to be able to determine the ordering of navigation links, so that I can control the layout of navigation on the site. This lets me put important links first.
This PR cleverly uses selectize along with the included drag-and-drop plugin to select and order both the static and dynamic pages to control the visibility and order of the navigation links. Hopefully this simplifies the navigation management.
While working on the navigation links I recognized that using a select gets selectize to submit the values as an array which I was able to similarly use to cleanup Website#footer_categories.
Changes
adds ability to select and sort order of static and dynamic pages to
appear in the navigation using selectize
removes Page#hide_navigation for controlling page nav visibility
simplifies Website#footer_categories by using selectize with select to
create an array instead of string
Control the order of navigation links
Reason for Change
From Miro Story:
This PR cleverly uses selectize along with the included drag-and-drop plugin to select and order both the static and dynamic pages to control the visibility and order of the navigation links. Hopefully this simplifies the navigation management. While working on the navigation links I recognized that using a select gets selectize to submit the values as an array which I was able to similarly use to cleanup
Website#footer_categories
.Changes
Control the order of navigation links