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.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

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

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(