Activities of "balessi75"

hi

https://community.abp.io/posts/how-to-override-localization-strings-of-depending-modules-ba1oy03l https://github.com/abpframework/abp-samples/tree/master/DocumentationSamples/ExtendLocalizationResource

Hi @maliming,

We've followed the community article and still can't seem to find were we are going wrong.

For the Feature:TwoFactor localization, should we be adding the virtualized json file from the Domain.Shared project's ConfigureServices method? Also, is it correct to be using the IdentityResource when adding the localized json file?

Application project reference to the DbMigrator project and I am still getting the same exception

Did you add the module dependency?

[DependsOn( 
    ..... 
    typeof(...ApplicationModule) 
    )] 
public class ...DbMigratorModule : AbpModule 

That was it! Thanks for the support @liangshiwei

Abp Commercial 5.1.3 / Blazor Server / EF

Hi, We've added the following to the ConfigureServices method of our Domain.Shared project:

Within the Domain.Shared/Localization/Extensions we have our en.json file set as an embedded resource. In the localization file we are attempting to override the Feature:TwoFactor localization value from the Identity Module. At runtime, however, we don't see the modified label.

We also tried putting the above code in the ConfigureServices method of our Application.Contracts project.

Any guidance is greatly appreciated.

Hi,

Setting definitions in the ..Account.Application project. you can add the Application project reference to the DbMigrator project.

Hi Liangshiwei,

I added our ...Application project reference to the DbMigrator project and I am still getting the same exception. The DataSeedContributer is in the Domain project. It needs to be there, correct? I tried adding a DataSeedContributer to the Application project, but DbMigrator does not discover the DataSeedContributer at runtime from that location.

We have a TemplateDefinitionProvider defined in our Domain project

hi

Can you try moving it into your Application.Contracts module?

Thank you maliming, that resolved the issue!

Abp Commercial / 5.1.3 / EF / Blazor Server

Hi, How does one change a setting for a dependent module programmatically? We followed the documentation at: https://docs.abp.io/en/abp/4.4/Modules/Setting-Management#isettingmanager

We are attempting to set Abp.Account.IsSelfRegistrationEnabled to always be false for the host db only by using the SaasDataSeedContributer in our Domain project (see below). The problem is that the account module settings don't seem to be available to set as we receive the following exception when attempting to set the setting: Volo.Abp.AbpException: 'Undefined setting: Abp.Account.IsSelfRegistrationEnabled'

   public virtual async Task SeedAsync(DataSeedContext context)
    {
        using (_currentTenant.Change(context?.TenantId))
        {
            await _editionDataSeeder.CreateStandardEditionsAsync();

            if (context?.TenantId == null)
            {
          
                await _settingManager.SetForTenantOrGlobalAsync(null, "Abp.Account.IsSelfRegistrationEnabled", "False");

            }
        }
    }
}

Abp Commercial 5.1.3 / Blazor Server / EF / Non-tiered

Hi, We have a TemplateDefinitionProvider defined in our Domain project and we are attempting to override the template for the built in email confirmation link. At runtime, however, the context of the provider only has "Abp.StandardEmailTemplates.Layout" and "Abp.StandardEmailTemplates.Message" available in it's collection. In our code below, emailLayoutTemplate is always null. Is there something missing here or are we taking an incorrect approach?

public class EmailTemplateDefinitionProvider : TemplateDefinitionProvider, ITransientDependency
{
    public override void Define(ITemplateDefinitionContext context)
    {


        var emailLayoutTemplate = context.GetOrNull("Abp.Account.EmailConfirmationLink");

        if (emailLayoutTemplate == null)
        {

We are not using the Text Templating Management Module because we want to maintain one template for all tenants (each tenant has its own separate database).

Thanks as always!

It seems there is a styling issue on the Lepton Theme. I've added it to our backlog and We'll do it asap.

Excellent, thank you @enisn

Abp Commercial / 5.1.3/ EF / Blazor Server / Non-tiered

Hi - We updated the default text for the email confirmation text template with the word "test"...

...however, when we send an email during registration of a new user, the Abp default text gets emailed not our saved text of "test". Is there another configuration step to override the default email confirmation text? It is not clear from the documentation.

It appears that the IValidatableObject validation doesn't wrap the error "Last Name is Required" in a <span> . After looking at the Lepton css in chrome's dev tools, I found that once I wrapped the error text in a span element using Chrome, the styling was corrected.

Any workaround that can be suggested or is this a possible fix at some point?

Showing 71 to 80 of 108 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13