Base solution for your next web application
Open Closed

User Available Fields in Header/Footer? #5939


User avatar
0
mdframe created

Are there any predefined user available fields in the ANZ header or footer? I have a situation where I need to show which warehouse a user is working for a tenant and I would like to show the warehouse code or name without changing the default framework.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mdframe

    Currently there is no such field but you can extend User entity as explained here https://docs.aspnetzero.com/documents/zero/latest/Extending-Existing-Entities

  • User Avatar
    0
    mdframe created

    I don't see how extending the user entity provides me the ability to have new display fields in the header or footer. Since I have been unable to find documentation on this please explain more as I am very intrigued in how the user entity controls the header and footer areas.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mdframe

    Maybe I understand you wrongly.

    I need to show which warehouse a user is working for a tenant

    I thought, you can store this information on AbpUsers table by extending the User entity. Then, of course, you need to modify the cshtml or html file (according to template you are using) and show this information on the client side by writing the necessary code.

    If you are looking for a pre-built feature to do that, it is not possible.