Hi, I have created a simple plugin to manage some reference/static data items under the Admin -> Configuration -> Shipping menu. When I select the menu item it correctly executes my controller method and displays the required page. However, the page has no styling. What is the thing I'm missing so that my plugin page is displayed with the same styling as all the other pages under the Admin area? It's probably something really simple but I just can't see it. Many thanks in advance. Steve
System.InvalidOperationException: 'The layout view '~/Admin/Views/Shared/_AdminLayout.cshtml' could not be located. The following locations were searched: ~/Admin/Views/Shared/_AdminLayout.cshtml'
I've tried an implementation of IViewLocationExpander too, but nothing I seem to do resolves this issue, so I'm assuming I'm just making some simple silly mistake somewhere :-(
Still no luck. It keeps complaining it can't find the file - even when I copy it locally - very strange. I wonder if when calling from a menu item (Admin -> Configuration -> Shipping) it's looking in a different place?
Still no luck. It keeps complaining it can't find the file - even when I copy it locally - very strange. I wonder if when calling from a menu item (Admin -> Configuration -> Shipping) it's looking in a different place?
Also make sure you have decorated your controller/method with:
Thank you so much mgustafsson! You nailed it! I knew it must have been something simple, but I'd spent so long looking in the wrong place I'd missed checking the controller side. Many thanks again. Cheers Steve
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.