Open Closed

Request for ABP Suite - Extra information in template system #7069


User avatar
0
rafael.gonzales created
  • ABP Framework version: v8.1.0
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hello,

I am working on integrating third-party controls like devexpress and telerik to make it fully automated using ABP Suite would be awesome to have more information (even if you don't use it) available in the suite format of %%VARIABLE%%

For example, in the Index of the entity, in the creation of the input for numeric, text, textarea, boolean, select. Would be awesome to either have it separated by data type or get a variable inside the existing templates to get to know what is the data type for that specific property so we can map special controllers from third-party providers or create custom logics in custom partial views or components. The same would be awesome for the Create and Edit. In both in the Javascript file and the View (Razor, blazor, etc).

Thanks


5 Answer(s)
  • User Avatar
    0
    rafael.gonzales created

    Would it be possible to add another template?

    In "Server.AppService.AppService.txt", there is a KEYWORD for navigation repositories

    For property declaration %%navigation-property-repositories%%

    For constructor %%navigation-property-repositories-inject%%

    And for variable assignation from constructor %%navigation-property-repositories-ctor%%

    This will generate IRepository<MyEntity, MyPrimaryKeyType> but what if we want to use the exact repository and instead of using this autogenerated, we want to use IMyEntityRepository which is also generated by ABP Suite.

    Can you give us that control to customize which repository we will use by default? if the generic one or the already generated one.

    Thanks

  • User Avatar
    0
    rafael.gonzales created

    In the Index.Js template, for example, Frontend.Mvc.Page.index.js.txt

    We can add this as navigation dropdowns, if anyone wants to use typeahead because they have high volume in their dropdowns, in the Index Page, we are forced to use traditional approach of getting the information in the Razor Pages and then bind the control, why can't we use typeahead in the Index.cshtml too?

    To accomplish that, we might start by adding this to work in the index.js and change the HTML generated in the index.cshtml %%navigation-property-dropdown-methods%%

  • User Avatar
    0
    rafael.gonzales created

    any answers for this, please?

  • User Avatar
    0
    rafael.gonzales created

    No answers here

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, sorry for the late response. I'll create an internal issue to improve our templating system and format. In the meantime, you can check https://docs.abp.io/en/commercial/latest/abp-suite/editing-templates this documentation for the details of some templates' placeholders.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15