• Getting Started
    • Prerequisites
    • Download and Installation
    • Change Log
  • Developer Guide
    • EvenCart Plugins
      • Development Environment Setup
      • Plugin Structure
      • EvenCart MVC
      • Dependency Injection
      • Domain Entities
      • Database Versions
      • Plugin Settings
      • Data Provider Plugin
      • Payment Processing Plugin
      • Shipping Provider Plugin
      • Authentication Provider
      • Widget Plugin
    • EvenCart API
      • Authentication
      • Requests & Responses
      • API EndPoints
    • Caching
  • Designer Guide
    • How to create a theme
    • Extended Tags
      • Layout Tag
      • Widget Tag
      • Json Tag
      • Css Tag
      • Js Tag
      • Bundle Tag
      • Partial Tag
      • Control Tag
      • Route Tag
      • Global Tag
      • Component Tag
    • Extended Filters
    • Global Objects
  • Packaging & Distribution

Layout Tag

The layout tag allows to specify the layout to be used for a particular page. The layout tag must be the top most tag in any page. There can only be maximum ONE layout tag in any page.

Parameter

The tag requires a layout name as its parameter.

Example

{% layout "_Layout" %}

When the view engine finds the above tag, it looks for the file named _Layout.html in the following locations in that order.

  1. Content/<your theme>/Views/Layout/_Layout.html
  2. Views/Layout/_Layout.html

The layout tag must contain a {% bodyContent %} tag that'll be replaced by the view engine at runtime.

Related Pages

  • Widget Tag
  • Json Tag
  • Css Tag
  • Js Tag
  • Bundle Tag
© 2022 Sojatia Infocrafts Pvt. Ltd. All rights reserved. Powered by onlyDoc.