This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

thomas15915526
thomas15915526

I've created a couple of models/controllers using the builder plugin and then added these to the backend menu so I have Library as main menu and books/guides/albums/images as sub menu's.

The problem I have is that when clicking on either albums or images icon on the blue left nav bar it loads the form in full screen and removes the left nav bar . Not a deal breaker as the forms work fine but annoying .

When clicking on books or guides it will switch between the 2 and keep the nav bar, I'm sure it's something simple but comparing the models I can't see any setup differences that may be causing this

Thanks!

Last updated

thomas15915526
thomas15915526

I've managed to fix this to an extent, the sidenav displays now on all controllers but it doesn't show which controllers is active on all (2 out of 4 will show as active when selected)

If anyone knows why it would be useful

In my albums controller it displayed this:

BackendMenu::setContext('Acme.Library', 'Gallery');

I changed this to

BackendMenu::setContext('Acme.Library','Library', 'Gallery'); 

and it worked and in my images controller

BackendMenu::setContext('Acme.Library', 'Albums', 'Images'); 

changed to

BackendMenu::setContext('Acme.Library', 'Library', 'Images');

Last updated

DMeganoski
DMeganoski

I believe the second parameter is the 'category' it belongs to. Did you create a 'Library' category? What did you put for 'category' in your Plugin.php's 'registerSettings() function?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.