Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

using crumbly with index directories #115

Open
dbinetti opened this issue Apr 18, 2017 · 9 comments
Open

using crumbly with index directories #115

dbinetti opened this issue Apr 18, 2017 · 9 comments

Comments

@dbinetti
Copy link

dbinetti commented Apr 18, 2017

my app is (in parts) organized using index directories. meaning, if I have a model resource like person, then when listing resources instead of using a template/controller/route like persons.hbs and persons.js, I instead have a /persons directory with index.hbs and index.js files as the template/controller/routes. This appears to not be supported with crumbly; is it a limitation that can be overcome in some way?

Specifically, I'm trying to use the functionality to set the path introduced in 1.0.6 by @dguettler that addressed #112 and it is not working with my organizational structure... thanks

@dbinetti
Copy link
Author

And I should be clear that when I say "not supported", what I actually mean is that customization via setting a breadCrumb hash on the route is not supported; it does function perfectly with the default configuration.

@dguettler
Copy link
Collaborator

@dbinetti you may want to try 2.0.0-alpha.0 (see #104) this may address your structure better.
I'd still need to include the 1.0.6 change to this version though.

@dbinetti
Copy link
Author

2.0.0-alpha.0 does fix the index route issue; I'll wait to see the 1.0.6 change implemented. thanks

@dguettler
Copy link
Collaborator

@dbinetti try [email protected] it includes 1.0.6 changes for path

@dbinetti
Copy link
Author

I've tried a few permutations without success. Perhaps I'm misusing. Given the following directory structure:

templates/
-items/index.hbs (list of resources)
-items/item.hbs (resource with tabbed navigation)
-items/item/details.hbs (resource detail normally on`items/item.hbs`)

On which router do I put the breadCrumb hash to indicate the path? I currently have {{bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true}}
on items/index.hbs and items/item.hbs (not on details, which is the tabbed content.)

@dbinetti
Copy link
Author

I suppose I should have reopened this since I'm still having the issue. Does not appear that 1.0.7 will resolve.

@dbinetti dbinetti reopened this Jun 22, 2017
@johnchque
Copy link

I can confirm to have the same problem, I tested also in 1.0.7 with no success, is there something we need to do for making it work? or just use the alpha version?

@knownasilya
Copy link
Contributor

knownasilya commented Nov 22, 2017

Also having issues with index being the one that is queried for the top level crumb, when I'm at another child route, not the index. Crumbs are pulled from parent.index, parent.myroute instead of the expected parent, parent.myroute

@cbou
Copy link

cbou commented Jan 23, 2019

Is there any news about this issue? It's still there in 3.0.1.

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

No branches or pull requests

5 participants