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

Use a different default breadcrumb #437

Closed
chrissvo opened this issue Aug 19, 2015 · 4 comments
Closed

Use a different default breadcrumb #437

chrissvo opened this issue Aug 19, 2015 · 4 comments

Comments

@chrissvo
Copy link

Can I set home as the default breadcrumb instead of dashboard?

Current structure:
image

I'd like to structure it like this:
home > projects > :id
home > dashboard

@chrissvo
Copy link
Author

Solved by overriding the breadcrumbs template. Kind of dirty, but I don't think I can override the _dashboard function in logics/breadcrumb.js

<ul class="breadcrumb">
  <li class="first">{{admin-letter-case content="Home"}}</li>
  {{#each content as |breadcrumb|}}
    {{#unless (is-equal breadcrumb.class "first")}}
      {{#if breadcrumb.active}}
        <li class="{{breadcrumb.class}}">{{admin-letter-case content=breadcrumb.name caseType=caseType}}</li>
      {{else}}
        <li class="{{breadcrumb.class}}">
          {{#link-to breadcrumb.url}}
            {{admin-letter-case content=breadcrumb.name caseType=caseType}}
          {{/link-to}}
        </li>
      {{/if}}
    {{/unless}}
  {{/each}}
</ul>

@OpakAlex
Copy link
Member

@chrissvo maybe better make in config option?

@OpakAlex
Copy link
Member

and use from config. or make in controller some property?

@OpakAlex
Copy link
Member

https://github.com/ember-admin/ember-cli-admin/blob/master/app/controllers/navigation.js Look into this. Why you don't want add property here?

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

No branches or pull requests

2 participants