Browse Source

Merge pull request #14762 from EvandroMotaSouza/patch-1

UI Customization Guide - ABP Tag Helpers explained.
pull/14810/head
maliming 4 years ago
committed by GitHub
parent
commit
5882396c3d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      docs/en/UI/AspNetCore/Customization-User-Interface.md

9
docs/en/UI/AspNetCore/Customization-User-Interface.md

@ -63,6 +63,15 @@ The account module defines a `Login.cshtml` file under the `Pages/Account` folde
You typically want to copy the original `.cshtml` file of the module, then make the necessary changes. You can find the original file [here](https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml). Do not copy the `Login.cshtml.cs` file which is the code behind file for the razor page and we don't want to override it yet (see the next section).
> Don't forget to add [_ViewImports.cshtml](https://learn.microsoft.com/en-us/aspnet/core/mvc/views/layout?view=aspnetcore-7.0#importing-shared-directives) if the page you want to override contains [ABP Tag Helpers](../Tag-Helpers/Index.md).
````csharp
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
````
That's all, you can change the file content however you like.
### Completely Overriding a Razor Page

Loading…
Cancel
Save