Activities of "liangshiwei"

For tenants with database connection strings, the data is kept in a separate database. The information of the tenant itself is stored in the host database (connection string, tenant name, etc.).

Answer

Hi @ididsbury,

Do you mean to add a toolbar to a custom page?

If you use a layout page, the toolbar will be displayed on your page, You only need to add toolbar contributors according to the documentation.

If you are not using a layout page, you can add a toolbar conponent to page , like this.

If you want a new toolbar, you can add your own toolbar component, like this, The important thing is StandardToolbars.Main, you need to replace it with your own toolbar constant.

Hi @talhazengin

I checked your code. You added workers repeatedly.

Quartz integration will automatically add workers, See Source Code. So, for quartz you don't need to add it manually.

There is another reason for repetition. You did not specify the job identity, for quartz, it is two different jobs.

In the next version, there will be an option to disable automatic add. See https://github.com/abpframework/abp/pull/3382.

liangshiw@outlook.com

You can send a email to me.

Using layout-hooks, you can add code to specific locations of the layout (including the top).

Is there an option to move a bundle to the top of a page and/or header

There is currently no such way.

Is there an option to remove scripts from a bundle, we may need to move the jquery script from the global bundle to another bundle with the telerik components that is loaded earlier on the page.

You can delete scripts through custom bundle contributors. Example:

public class CustomGlobalScriptContributor: BundleContributor
{
    public override void ConfigureBundle(BundleConfigurationContext context)
    {
        context.Files.RemoveAll(x => x.Contains("jquery"));
    }
}
context.Services.Configure<AbpBundlingOptions>(options =>
{
    options
        .ScriptBundles
        .Configure(StandardBundles.Scripts.Global, bundle => {
            bundle.AddContributors(typeof(CustomGlobalScriptContributor));
        });
});

Did you reproduce the problem? I tested version v2.4, It works fine.

See https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-User-Interface for more information.

Hi @talhazengin

I can't reproduce your problem, can you provide more information. If you can use the CLI to create a simple project to reproduce this problem is better :).

I will check this.

HI @talhazengin, There are two ways:

  1. Get all tenants and change the current tenant to get their data:
using (_currentTenant.Change(tenant.Id))
{
      // query....
}
  1. Disable multi-tenant filter:
using (_dataFilter.Disable<IMultiTenant>())
{
       // query....
}
Showing 6331 to 6340 of 6355 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09