Metronic Laravel menu and breadcrumb
Hello!
I am developing a web application based on Metronic theme, laravel_app version. I would like to use your menu and breadcrumb construction solution but the documentation on this is poorly described. In pages.php I have:
'greenhouse' => array(
'title' => 'Greenhouses', '*' => array(
'title' => 'Greenhouse',
'edit' => array(
'title' => 'Update greenhouse',
),
),
),
When viewing page "/greenhouse/2/edit" I am expecting that this code will generate breadcrumb like: "Home - Greenhouses - Update greenhouse" but it doesn't work like this. How can I achieve such breadcrumb?
The second question is where can I change "Home" text in breadcrumb?
And last question. Is it possible in your solution to mark "Grenhouses" (/greenhouse) menu item when I am in "/greenhouse/2/edit" subpage?
Kindly ask for help.
Replies (1)
Hi,
You can check and customize the breadcrumb in the layout file here;views/layout/demo2/_page-title.blade.php
app/Core/Menu.php
in the function getBreadcrumb()
Could you please try like this?
'greenhouse' => array(
'title' => 'Greenhouses',
'*' => array(
'title' => 'Greenhouse',
'*' => array(
'edit' => array(
'title' => 'Update greenhouse',
),
),
),
),
Thanks