Skip to content
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

Breadcrumbs Work Around #24422

Open
kalungia opened this issue Jan 17, 2024 · 3 comments
Open

Breadcrumbs Work Around #24422

kalungia opened this issue Jan 17, 2024 · 3 comments

Comments

@kalungia
Copy link
Contributor

Hello,

Am asking a workaround for the breadcrumbs. If I am under Selling Doctype and open a customer then I click on Add Sales Invoice the Breadcrumbs should be

Sellings > Customer > Customer Name > Sales Invoice > New

There is breadcrumbs on the workspace. Sometimes it show irrelevant previous path or just pick up the first item on workspace list.
God, we need a way to set Breadcrumbs in the doctype itself 😅

Somehow Employees show under Accounting, and when HR user tries to navigate back, she presses on Accounting and it just shows “Not Permitted” error. Oh god.

https://discuss.frappe.io/t/breadcrumbs-of-doctypes-workspace/85890

@imbraintl
Copy link

We strongly agree with this.

@kehwar
Copy link

kehwar commented Mar 14, 2024

You can show your own breadcrumbs with client scripts

https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/views/breadcrumbs.js

frappe.breadcrumbs.clear()
frappe.breadcrumbs.append_breadcrumb_element('route', 'label')

@kalungia
Copy link
Contributor Author

You can show your own breadcrumbs with client scripts

https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/views/breadcrumbs.js

frappe.breadcrumbs.clear()

frappe.breadcrumbs.append_breadcrumb_element('route', 'label')

This okay, but it will e better if frappe does it the right way

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

No branches or pull requests

3 participants