admin/docs/menu_items.md
You are allowed to add your custom links to the main navigation. To do so, you can access SolidusAdmin::Config.menu_items in an initializer:
# config/initializers/solidus_admin.rb
SolidusAdmin::Config.menu_items << {
key: :my_custom_link,
route: :my_custom_link_path,
icon: "24-hours-fill",
position: 80
}
solidus_admin.menu_item.#{key} key.For nested links, you can provide a children: option with an array of hashes:
# config/initializers/solidus_admin.rb
SolidusAdmin::Config.configure do |config|
config.menu_items << {
key: :my_custom_link,
route: :my_custom_link_path,
icon: "24-hours-fill",
position: 80,
children: [
{
key: :my_custom_nested_link,
route: :my_custom_nested_link_path,
position: 80
}
]
}
end
Your custom link will be rendered in the active state when its base path (i.e, the path without the query string) matches the one for the current url.