Open Closed

Help with the customizing the public web pages #959


User avatar
0
jtallon created
  • ABP Framework version: Latest
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I am using the *.Web.Public template and finding it diffcult to figure out how to get data from the AppService to the UI.

This is the Service that I want to load data from.

I have created a committees.cshtml in the Pages folder and added a matching navigation menu item. All works well. On the committees.cshtml I have added the following :

I have added committees.js file.... with the following code...

The dynamic proxies for the AppService is not resolving. The window.meetingsPublicPortal is coming back as undefined. I have copied the same as the Backend project, when it works.

What us different about the dynamic proxies in the Web.Public over the MeetingsPublicPortal.Web.csproj project?

URGENT, NEED FOR DEMO


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Try:

    The web.public does not create API dynamic proxy. if you want to use API dynamic proxy. you can try:

    Configure<AbpAspNetCoreMvcOptions>(options =>
    {
        options.ConventionalControllers.Create(typeof(MyProjectNameApplicationModule).Assembly);
    });
    

    Recommend you create a sparate application service layer for the web.public like : Application.Public

  • User Avatar
    0
    jtallon created

    Thanks... this is magical.

    Feedback: These types of conventions would be really good to have documented somewhere

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00