-
Notifications
You must be signed in to change notification settings - Fork 920
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
[question] Add subnavigation tabs/links #196
Comments
Umm, of course. |
Hmm... When you say settings do you mean "settings" or "entities", as in different CRUDS? If you mean nested cruds, take a look at this answer here: #82 (comment). I'm not 100% sure that's what you're looking for. Cheers! |
With settings I mean stuff like setModel() and setRoute() |
I'm just tidying up some bits, so closing this off as its quite old now, if you guys feel the need to reopen, thats all good! |
I'm breaking my head over this and could use some help figuring it out (if even possible).
I'm trying to find a way to add subnavigation to one of the models/entities. I use backpack to admin some sort of e-commerce site that has multiple stores with each their own settings (general, design, products, etc.). I would like to add subnavigation for the selected store (/store/1/general, /store/1/design etc). Maybe I'm just not seeing it but how to achieve this in true backpack fashion?
I thought about a possible solution and tried it as proof of concept but it didn't work:
$this->addSubNavLink([settings_here])
This doesn't work because it chokes on:
$this->subnav->push(new SubNavLink($placement, $name, $type, $content));
If
$this->addSubNavLink([settings_here])
is set in the basecontroller, $this->subnav is null, if I set it in StoreGeneralCrudController it works (but this is not the place for it).Any ideas?
The text was updated successfully, but these errors were encountered: