caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

Variable children #25

Closed xtrasmal closed 9 years ago

xtrasmal commented 9 years ago

Hello there,

how would I add a route to the menu, so that the active state on the parent is automatically set.

The route has a {uuid} at the end and generates urls like this

infrastructure/vms/7de30cf6-3773-4818-8e35-ca623d301e96

and is defined in my routes.php like so

Route::get('/vms/{uuid}',       ['as'=>'infrastructure.vms.single']);
kaidesu commented 9 years ago

Hmm, yeah, the automatic active link detection doesn't account for organic links like this. I'll have to think about this one and try some things out - but for now, I don't have a solution.

xtrasmal commented 9 years ago

Hi there, did you find a solution for this enhancement yet?

kaidesu commented 9 years ago

I haven't had time this week to do any coding, so I'll try to take a look into this next week.

kaidesu commented 9 years ago

Consolidated this issue into #44.