New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nova Breadcrumb Package #48

Closed
dillingham opened this Issue Sep 20, 2018 · 9 comments

Comments

Projects
None yet
5 participants
@dillingham
Collaborator

dillingham commented Sep 20, 2018

Package that provides a breadcrumb UI for the following routes

  • index Home > Users
  • create Home > Users > New
  • detail Home > Users > $title
  • edit Home > Users > $title > Edit

breadcrumbs

inspired from the discussions here laravel/nova-issues#204

@bernhardh

This comment has been minimized.

bernhardh commented Oct 17, 2018

Any news from this? Especially if you use the tab package, you will get lost very easy. For example:

image

Which article do I edit right now? Nobody knows, since the information is only available in the first tab "Allgemeines".

@dillingham

This comment has been minimized.

Collaborator

dillingham commented Oct 17, 2018

Not sure I see the relationship between tabs and breadcrumbs

This package is not in production

Feel free to build it though :)

@bernhardh

This comment has been minimized.

bernhardh commented Oct 17, 2018

The relationship would be, that I don't see where I am, when not on the "main" tab, because only on main tab you would see the title/name of the article. If there would be a breadcrumb in the way you suggested, I would see "Home > Articles > $title > Edit" ("Home > Articles > My cool Article > Edit") and I would know on every tab, which article I am editing right know.

If I find out, how to do it, I will probably make a package for it.

@dillingham

This comment has been minimized.

Collaborator

dillingham commented Oct 17, 2018

Ah I see what you mean, well there is CustomToolbar vue components that can be overridden

laravel/nova-issues#786 (comment)

@bernhardh

This comment has been minimized.

bernhardh commented Oct 17, 2018

I known, there is custom-index-toolbar and custom-detail-toolbar, but no custom-edit-toolbar, so that will not work ;)

@dillingham

This comment has been minimized.

Collaborator

dillingham commented Oct 17, 2018

there's a header one too 🤷‍♂️

@bernhardh

This comment has been minimized.

bernhardh commented Oct 19, 2018

there's a header one too

what does this mean?

@nasrulhazim

This comment has been minimized.

nasrulhazim commented Nov 27, 2018

Is it possible to have https://github.com/davejamesmiller/laravel-breadcrumbs to be implement in Nova? try to use in Nova, but no luck at the moment.

<?php 

use Laravel\Nova\Nova;

// Dashboard
Breadcrumbs::for('nova.index', function ($trail) {
	$trail->push(__('Dashboard'), url(Nova::path()));
}); 

Breadcrumbs::for('nova.', function ($trail, $view) {
	$trail->parent('nova.index');
	$trail->push(uriToTitle($view), url($view));
}); 

This is so far how I configure, but no luck display the breadcrumb correctly, Nova rely on VueJS. So I'm not really sure how to implement in VueJs from Laravel Breadcrumb package.

@chris-ware

This comment has been minimized.

chris-ware commented Dec 9, 2018

Fellow developers, I give to you Breadcrumbs:
https://packagist.org/packages/chris-ware/nova-breadcrumbs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment