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.).
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.
I will check this.
HI @talhazengin, There are two ways:
using (_currentTenant.Change(tenant.Id))
{
// query....
}
using (_dataFilter.Disable<IMultiTenant>())
{
// query....
}