My plugin views are missing the first title (eg. Configre - {plugin}), and do not have the link to go back to plugin list

11 месяцев назад
Hi, like the title says I have a problem, that my views (configure and one more), are missing the first word in the title on the header of the admin page. It usually in all plugins and widgets says configure, but in mine, it doesn't say anything, and is just like - {plugin}.
Also the arrow with the text "back to plugin list" is missing for me.
Where do I add these?
Thanks
11 месяцев назад
Check the plugin.json file in the plugin directory
Does it have
  "FriendlyName": "XXXXX",

Which would normaly display Configre - XXXXX

You can also check for errors in the log

Normally it is best to start with an existing plugin which is similar i.e. Misc, Payment or Shipping, etc then copy and modify
11 месяцев назад
I am sorry, but it seems you didn't fully understand my issue. I do have a friendly name set, and the plugin name is shown correctly. The problem is I don't see the "Configure" before it. I also don't see the go back to plugin list link.
11 месяцев назад
Do you use the standard Plugin layout

@{
    Layout = "_ConfigurePlugin";
}

See src\Presentation\Nop.Web\Areas\Admin\Views\Shared\_ConfigurePlugin.cshtml
Uses the assembly type to select and display those texts
11 месяцев назад
Yes I use the standard plugin layout like you posted.
11 месяцев назад
But I just see now, how does it know which plugin assembly I have and where do I set it?
I also see that I would like a: IMiscPlugin
But it still doesn't say Configure anywhere like in the other plugins...
11 месяцев назад
Comes from the Inherited Assembly

    public class YourPlugin: BasePlugin, IMiscPlugin
    {
    ...
    }

or

    public class YourPluginPaymentProcessor : BasePlugin, IPaymentMethod, IWidgetPlugin
    {
    ...
    }
11 месяцев назад
Thanks that worked!