Dynamically Order Menu Items

3 views
Skip to first unread message

Mike

unread,
Mar 8, 2022, 10:04:32 AMMar 8
to simple-navigation
Is there any way I can order the menu items dynamically?  

So 
primary.item :account, 'Home', home_path
primary.item :account, 'Account', account_path
primary.item :account, 'Store', store_path

would become:

primary.item :account, 'Account', account_path
primary.item :account, 'Store', store_path
primary.item :account, 'Home', home_path

if needed.

Many thanks,

Mike


Reply all
Reply to author
Forward
0 new messages