Starts in:
2 DAYS
3 HRS
7 MIN
34 SEC
Starts in:
2 D
3 H
7 M
34 S
Open Closed

ABP Suite - Generator CRUD - Change or Replace the components generated #5771


User avatar
0
CI created

Verifique a documentação antes de fazer uma pergunta: https://docs.abp.io/en/commercial/latest/ Confira os exemplos para ver as tarefas básicas: https://docs.abp.io/en/commercial/latest/samples/index A solução exata para sua pergunta pode ter sido respondida antes, então use primeiro a busca na página inicial. Forneça-nos as seguintes informações:

  • ** Versão do Framework ABP **: v7.2.3
  • ** Tipo de UI **: Angular
  • ** Sistema de Banco de Dados **: EF Core (SQL Serve)
  • ** Em camadas (para MVC) ou servidor de autenticação separado (para Angular) ** : não
  • ** Mensagem de exceção e rastreamento completo da pilha ** :
  • ** Etapas para reproduzir o problema ** :

Hi,

Can I change or replace the components generated by abp suite with my custom components at the time of generation?

Ex.: From <div class="mb-3"> <label class="form-label" for="demo-employee-name"> {{ '::Name' | abpLocalization }} * </label> <input id="demo-employee-name" formControlName="name" class="form-control" autofocus /> </div>

To <cds-input-text [label]="' '::Name' | abpLocalization" [id]="'demo-employee-name'" [name]="'demoText'" formControlName="name"> </cds-input-text>

Can you help me?


5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    please go through this link https://docs.abp.io/en/commercial/latest/abp-suite/editing-templates you can edit any templates

  • User Avatar
    0
    CI created

    Hi,

    I didn't find anything regarding Frontend.Angular. Could you give me an example regarding the example above.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    if you need to create a project with you own custom template then you can go to C:\Users\someuser\ .abp\templates and modify the template like unzip modify and zip it again and then use following command

    abp new Acme.BookStore -t app -u mvc --mobile none --database-provider ef --template-source "C:\Users\someuser\.abp\templates"

    i am not sure which file you want to edit?

    you can edit this files which is used while generation of entity

  • User Avatar
    0
    CI created

    Hi,

    What is the template for translations?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi

    I am sorry, what do you mean by translations template can you please explain?

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