Activities of "alper"

if you have updated Suite on 2020-05-21, please remove and install it again.

abp suite remove
abp suite install

@sean for this post, I've created an issue. thank you for the feedback! https://support.abp.io/QA/Questions/149#answer-dc4c68b2-bb05-4581-4827-39f540d8ecbf

@sean for the update problem.. you need to first update abp cli tool then update abp suite see screenshot

I'll try to reproduce it

You can change the logo from BookStoreBrandingProvider.cs or if you don't have this class in your solution, you can add this to your Web project.

In the below code, the logo is being changed by current tenant name. You can inject any service to this class, and apply your own business logic.

 [Dependency(ReplaceServices = true)]
    public class BookStoreBrandingProvider : DefaultBrandingProvider
    {
        //You can inject services here...
        private readonly ICurrentTenant _currentTenant;

        public BookStoreBrandingProvider(ICurrentTenant currentTenant)
        {
            _currentTenant = currentTenant;
        }

        public override string AppName => "Acme - MyBookStore";

        public override string LogoUrl => GetLogoUrl(false);

        public override string LogoReverseUrl => GetLogoUrl(true);

        private string GetLogoUrl(bool isReverse)
        {
            if (_currentTenant.Name == "MyCustomer")
            {
                return isReverse ? "http://mycustomer.com/logo-reverse.png" : "http://mycustomer.com/logo.png";
            }

            if (_currentTenant.Id.HasValue)
            {
                return $"/images/logo/{_currentTenant.Id}";
            }

            return isReverse ? "/images/logo/my-default-logo-reverse.png" : "/images/logo/my-default-logo.png";
        }
    }

To set the position use CSS. Here's how you can do it MVC project

You can add a global.css and make these customizations in there. To add a global style to the standart contributors. Add this code to the ConfigureServices() method in BookStoreWebModule.cs in the web project

  Configure<AbpBundlingOptions>(options =>
            {
                options
                    .StyleBundles
                    .Configure(StandardBundles.Styles.Global, bundle =>
                    {
                        bundle.AddContributors(typeof(GlobalStyleContributor));
                    });
            });
        public class GlobalStyleContributor : BundleContributor
        {
            public override void ConfigureBundle(BundleConfigurationContext context)
            {
                context.Files.Add("/Pages/global.css");
            }
        }

\Pages\global.css

.account-brand .navbar-brand {
    position: fixed !important;
    top: 20px !important;
    left: 100px !important;
}

I'd like to change logo and position

You can simply disable self-registration from the Settings page.

How can I hide register links so that only admin can create user accounts?

There are standard bundles come from the framework itself. These are CSS and JavaScript bundles. You can get list of these files and remove/add. Open BookStoreWebModule.cs In ConfigureServices() method, add the below code

   Configure<AbpBundlingOptions>(options =>
            {
                options
                    .ScriptBundles
                    .Configure(StandardBundles.Scripts.Global, bundle => {
                        bundle.AddContributors(typeof(RemoveJqueryScriptContributor));
                    });
            });

And add this class,

public class RemoveJqueryScriptContributor : BundleContributor
        {
            public override void ConfigureBundle(BundleConfigurationContext context)
            {
                var jquery = context.Files.FirstOrDefault(x => x.EndsWith("jquery.js", StringComparison.InvariantCultureIgnoreCase));
                if (jquery != null)
                {
                    context.Files.Remove(jquery);
                }
            }
        }

This code removes jquery.js from the standard global scripts bundle.

How do I remove the jquery.js from the bundle?

Showing 1901 to 1910 of 2060 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 07, 2025, 08:20