Topic: Menu filter
How I can automaticaly generate menu by alphabetical? What I must change in the plugin code?
You are not logged in. Please login or register.
How I can automaticaly generate menu by alphabetical? What I must change in the plugin code?
They are sort by ORDER field now.
You can change here:
https://github.com/Awilum/monstra-cms/b … in.php#L49
to this:
->assign('items', $menu->select('[category="'.$category.'"]', 'all', null, array('id', 'name', 'link', 'target', 'order', 'category'), 'name', 'ASC'))
ASC - Ascending
DESC - Descending