TrestleAdmin / trestle

A modern, responsive admin framework for Ruby on Rails
https://trestle.io
GNU Lesser General Public License v3.0
1.96k stars 177 forks source link

How to customize Breadcrumb according to a particular instance #391

Open lphm opened 2 years ago

lphm commented 2 years ago

Hello, I need to customize admin form breadcrumbs with making conditions/tests on current loaded instance in form. How can I do this ? Thank you

toqeerabbas commented 2 years ago

you can try this for customize breadcrumbs admin do def breadcrumbs Trestle::Breadcrumb::Trail.new([ Trestle::Breadcrumb.new("Home", "/admin"), Trestle::Breadcrumb.new("Organisations", "/admin/organisations") ]) end end