Next.js pages can use templates that are either stored in the Renderer application or created directly in the Sitefinity CMS backend based on the default template or other existing ones for the Next.js renderer.
This sample demonstrates how to setup a custom template component that can be used as a base for building your Next.js application. The template is meant to define what is in the body tags. You can refer scripts using the Next.js ccript element and its properties. In the case when you want to modify the whole page structure, you can do that by modifying or creating a global or a route-specific layout.tsx for more information, see Next.js documentation on Pages and layouts.
layout.tsx
Template inheritance is available for custom templates as well. You can base your Sitefinity CMS templates on the custom templates from the Next.js Renderer.
To create your own custom template, you must do the following:
.tsx
widgets
requestContext
data-sfcontainer="your_placeholder_name"
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important