Starts in:
0 DAY
3 HRS
52 MIN
16 SEC
Starts in:
0 D
3 H
52 M
16 S
Open Closed

Create Text Template Button on Text Template Management in Blazor #2496


User avatar
0
adrianl created

Hi,

We want to integrate the Text Template with Blazor is there a way that we can add a create Text Template feature on the existing Text Template?

Is there also a way instead of saving the template as a virtual file we can store the template on the database?


5 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @adrianl

    As the Text Template Management module document says, it is used to store and edit template contents for the text templating system of the ABP framework. So there is no backend implemantation for creating a new text template. Furthermore, this is not the purpose of this module.

    Is there also a way instead of saving the template as a virtual file we can store the template on the database?

    When you edit a template, edited version will be stored on database and the default version will remain same in virtual file system. The time user wants to reach the template, database version will have a higher priority. Thats how the text templating system works.

  • User Avatar
    0
    adrianl created

    Hi @adrianl

    As the Text Template Management module document says, it is used to store and edit template contents for the text templating system of the ABP framework. So there is no backend implemantation for creating a new text template. Furthermore, this is not the purpose of this module.

    Is there also a way instead of saving the template as a virtual file we can store the template on the database?

    When you edit a template, edited version will be stored on database and the default version will remain same in virtual file system. The time user wants to reach the template, database version will have a higher priority. Thats how the text templating system works.

    Hi @yekalkan,

    Is it possible that a user can create it's own Text Template on the front end not just editing the existing pre defined text template? One of the requirements needed on my end is that a user can create it's own Text Template and Save it on database instead of just editing the pre defined templates from the framework that's why we need to have a create text template feature on the Text Template.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    One of the requirements needed on my end is that a user can create it's own Text Template and Save it on database

    What is the use of this? Where the user will use this new text template?

  • User Avatar
    0
    adrianl created

    One of the requirements needed on my end is that a user can create it's own Text Template and Save it on database

    What is the use of this? Where the user will use this new text template?

    The user will create different text templates for different email notifications. For example, the user wants an email notification if there's a created order, the user will create a Text Template for that. Then another email notification will also be created but with different text template when the order successfully received.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    This doesn't make sense. In the end, backend will still need to know which text template is used for which email type. That's why this module/system doesn't allow user to create new templates, because all the text templates have to be known and pre-defined by application.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06