Base solution for your next web application
Open Closed

Using EditionManager #2085


User avatar
0
alukaszewski created

How do I use Edition Manager to SET a new version, instead of "Standard" ? I am performing a very primitive license key check (domain/date and bitmask feature check) using my own custom action filter attribute each time the user navigates to a new page controller (Mpa project). When the Home controller is ran, I would like my action filter to set the Edition to "Standard" or "DataCenter" based on my own check against the license key.

Could you advise on how I use SET method of the EditionManager to change Edition DisplayName?

Many Thanks!


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Editions are for tenants, not for the application. That means it's used to restrict application features for tenants. Your case is different (I don't know if your application is multitenant, but doesn't matter). You want to completely disable some features based on the installation. So, you should handle it in your own way. You can determine the application's version/edition based on a license key and show the version on UI.

  • User Avatar
    0
    alukaszewski created

    I am not using multi-tenant. So, how do I show the version in the UI as "DataCenter" instead of "Standard" (in the bottom left corner)?

    The _Footer.cshtml contains the code to display in the UI: @(AppVersionHelper._Product_Version) - it's stored in the AbpEditions table as "DisplayName", is there a method to set that value or do I need to update that with my own action?