ember-crumbly icon indicating copy to clipboard operation
ember-crumbly copied to clipboard

using crumbly with index directories

Open dbinetti opened this issue 7 years ago • 9 comments

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 avatar Apr 18 '17 12:04 dbinetti

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.

dbinetti avatar Apr 18 '17 12:04 dbinetti

@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.

dguettler avatar Apr 18 '17 12:04 dguettler

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

dbinetti avatar Apr 18 '17 18:04 dbinetti

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

dguettler avatar Apr 19 '17 02:04 dguettler

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 avatar Apr 19 '17 15:04 dbinetti

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

dbinetti avatar Jun 22 '17 22:06 dbinetti

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?

johnchque avatar Oct 03 '17 13:10 johnchque

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

knownasilya avatar Nov 22 '17 18:11 knownasilya

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

cbou avatar Jan 23 '19 22:01 cbou