Hi, We're working on the feature to allow user custom the Text Template for each role. For example, with activation email text template we want to customize so that each role can receive the different content but using the single text template. So how many function in ABP that we need to customize so that and can you provide us some sample ?
ABP Framework version: 8.3 UI:Angular Multi-tenant enabled: yes Localization enabled: yes
1 Answer(s)
-
0
Hi, the Text Template Management module in ABP Framework supports tenant-specific and culture-specific template customizations out of the box.
However, implementing role-based customization requires more extensive changes. For example, you would need to:
- Extend the
AbpTextTemplateContents
table to include aRoleId
column, - Modify the application service implementations accordingly,
- Adjust the logic responsible for resolving and rendering templates to factor in user roles.
Since this involves updating several layers (from database to application logic), it’s not straightforward to list all required changes here. We recommend checking the Text Template Management module's source code to identify the key integration points and customize the behavior based on your needs.
Regards.
- Extend the