Entity Content Section Documentation
Introduction
This package includes a Bootstrap only section that outputs the Title of page (in h1 tag) and the HTML Content (entered in the content_html field) in a coherent and consistent format. Furthermore, there are few other customization options such as setting a background image, or colors. Have a look at the demo. The details are shown below.
Usage
The Package contains one base partial template and one main partial templates for use. The main partial template has user fields and can be included in a single line, whereas the base partial does not contain any user fields and requires inputs via variables. Some variables that can be used to modify the section are below:
section_class - This string will be set in the class of the main section. Defaults to "py-5".
column_class - This string will be set as the class of the column section. This is intended to change the maximum width of the displayed content. By default it is set to "col-10 offset-1".
title_class - This string will be set as the class of the displayed title. This is intended to change the alignment of the title text. By default it is set to "text-center".
content_class - This string will be set as the class of the displayed HTML content. This is intended to change the alignment of the content area. By default it is set to "text-center".
Show Full
{%- include "/marketpath/entity-content-section/partials/_entity_content_section.liquid" -%}
Base Partial
The base partial has no user fields, and instead relies on the below mentioned user variables to output the section.
show_page_title_before_content - If set to true, this will enable displaying of entity title above the HTML content area. Defaults to true.
show_divider_line - If set to true, this will output a horizontal line dividing the title and content area. Defaults to true.
section_class - This string will be set in the class of the main section. Defaults to "py-5".
column_class - This string will be set as the class of the column section. This is intended to change the maximum width of the displayed content. By default it is set to "col-10 offset-1".
title_class - This string will be set as the class of the displayed title. This is intended to change the alignment of the title text. By default it is set to "text-center".
content_class - This string will be set as the class of the displayed HTML content. This is intended to change the alignment of the content area. By default it is set to "text-center".
bg_type - An option containing different Background types. Either of "None", "Solid Primary Color", "Solid Secondary Color", "Solid Light Color", "Solid Dark Color", "Custom Image", "Custom Color".
bg_custom_color - A hex color code for background color, if bg_type is set to "Custom Color".
text_custom_color - A hex color code for text color, if bg_type is set to "Custom Color".
bg_image - An image that will be set as background if bg_type is set to "Custom Image".
Show Full
{%- include "/marketpath/entity-content-section/partials/_entity_content_base.liquid" bg_type:"Solid Primary Color" -%}