Hello,
We have two questions about MenuContributor. Firstly, we always want to use MultiTenancySides.Both in permission side. But sometimes, we want to use just show our own module in host, not a tenant. We can create options class and then check it when if CurrentTenant.Id is null to achieve this. But we think that, it is not a best way for this. Can you give an advice about that?
And the above example is taken from our own module, but I want to use this logic also in Volo.CmsKit MenuContributor. How should I override it in CmsKit MenuContributor.
Thanks
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
ABP Framework version: v5.3.2
UI type: / MVC /
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes / no
Exception message and stack trace:
Steps to reproduce the issue:"
3 Answer(s)
-
0
And the above example is taken from our own module, but I want to use this logic also in Volo.CmsKit MenuContributor. How should I override it in CmsKit MenuContributor.
hi
You can remove the
CmsKit MenuContributor
from theAbpNavigationOptions
and copy the code to yourMenuContributor
Configure<AbpNavigationOptions>(options => { options.MenuContributors.Remove... });
-
0
And the above example is taken from our own module, but I want to use this logic also in Volo.CmsKit MenuContributor. How should I override it in CmsKit MenuContributor.
hi
You can remove the
CmsKit MenuContributor
from theAbpNavigationOptions
and copy the code to yourMenuContributor
Configure<AbpNavigationOptions>(options => { options.MenuContributors.Remove... });
Thanks for your advice but I don't want to manage with options. I need to override CmsKitAdminMenuContributor.cs on some special case. Is there any way to do this?
-
0
hi
CmsKitAdminMenuContributor is not designed to be overridden. This is not possible at the moment.