Learn how to take advantage of your business data with Microsoft Dynamics 365 & Power Platform & Cross Technologies. My name is Sanjaya Prakash Pradhan and I am a Microsoft Certified Trainer (MCT) and
In Power Pages Portals, template inheritance is achieved by using the extends tag in combination with the block tag. The extends operator allows multiple templates to use a shared layout, while also permitting the overriding of specific areas of the parent layout. In the context of Power Pages, the parent template name provided to the extends tag will generally refer to the name of a web template. When extends is used, it has to be the first content in the template, and can only be followed by one or more block tags. If a block defined in the parent template is not overridden, its contents in the parent template (if any) will be rendered.
Template inheritance is a powerful feature in Power Pages Portals, enabling developers to create modular and reusable code. It provides a way to maintain consistent layouts across multiple pages, allowing for greater flexibility and efficiency. The combination of the extends and block tags not only makes it easy to share a layout between templates, but also enables customization of individual sections within each template. This approach significantly reduces code redundancy and simplifies web template management.
Read the full article Template Inheritance in Power Pages Portals
Template Inheritance in Power Pages Portals enables multiple templates to use a shared layout while allowing specific areas of the parent layout to be overridden. The extends tag must be the first content in the template, followed by one or more block tags. If a block defined in the parent template is not overridden, its contents in the parent template will be rendered.
Template Inheritance in Power Pages Portals allows the same layout to be used across multiple templates, while allowing specific sections of the layout to be overridden. The extends tag must be the first content in the template, and can only be followed by one or more block tags. If a block defined in the parent template is not overridden, its content will be rendered from the parent template.
Power Pages Portals, Template Inheritance, Extends Tag, Block Tag, Power Pages Template Name