The following article describes in detail how the different tiers of the three-tier architecture interact when a user edits an ASP.NET Core page.
The following chart illustrates how the Page editor works with Sitefinity .NET Core Renderer:
The process is the following:
In the implementation of the Page editor, the presentation of the Renderer (.NET Core content) is separated from the backend admin UI (Publish, Settings, etc.) with an iframe. This approach achieves greater separation and avoids mixing scripts and styles between the frontend and the backend page editing interfaces.
NOTE: The actual .NET Core page is located in the Renderer, while the edit mode of the page is visualized in an iframe in Sitefinity CMS. The navigation bar, the widget selector, and the widget editors are part of Sitefinity CMS.
Sitefinity CMS and the .NET Core Renderer communicate with each other through Rest API calls. Sitefinity CMS calls the Renderer for the following operations:
The Page editor and the Renderer also communicate with each other through comments in the HTML. These comments instruct the Page editor where the widgets and sections are located. This help to generate the appropriate wrapping elements and widget editors, as well as the drag-and-drop functionality. These comments and elements are present in page edit mode only. They are removed from the live page and in preview mode.
NOTE: The HTML that is inserted in edit mode uses shadow DOM, so that it does not obstruct the actual frontend content.
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important