| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this references a published stylesheet |
| guid | String | The unique identifier for this stylesheet |
| value | String | Contains the same value as guid |
| name | text | The name of the stylesheet which, when combined together with the path, uniquely identifies the stylesheet on this site |
| path | String | The path, exluding filename, of this stylesheet used for organizational and reference purposes |
| stylesheet_type | select | Stylesheet language. May either be "css", "less", or "scss" |
| compiled | Boolean | If true, indicates that this is a top-level stylesheet that should be compiled |
| parse_liquid | Boolean | If true, indicates that this stylesheet contains Liquid Markup that should be rendered before the stylesheet is processed and output |
| url | String | The full URL for this stylesheet in the CDN |
| style_sheet_text | code | The source code for this stylesheet |
| style_sheet_text_compiled | String | The full processed and compiled stylesheet text if this is a compiled stylesheet |
| field_id | String | The identifier for this field |
| label | String | The label for this field |
| output | String | Adds the stylesheet to the document head, similar to calling {% add_stylesheet %} with it |
Contains multiple stylesheets.
| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this contains at least one published stylesheet |
| output | String | The default output that the stylesheets will produce when it is output directly to the template - using the "output_in_list" property of each stylesheet in the items list |
| prepended | list | List containing any prepended stylesheets. |
| fetched | list | List containing all of the stylesheets that were fetched from the database (as opposed to prepended or appended). |
| appended | list | List containing any appended stylesheets. |
| appended_unique | list | List containing any appended stylesheets excluding any stylesheets that are in either the list of prepended or fetched stylesheets. |
| items | list | List containing all of the combined stylesheets from the prepended, fetched, and appended lists. If unique is true, this list will not contain any duplicates. If max_size is set, this list will not contain more than the number of stylesheets specified. |
| size | Integer | The total number of stylesheets in the items list, including prepended, fetched, and appended lists, and respecting the unique and max_size properties. |
| max_size | Integer | If set, this is the maximum number of items that will be returned in the items list and the maximum number of items that will be included when this stylesheets object is enumerated as a list. When not set, this value will be 0. |
| unique | Boolean | When true, the items list will not contain any duplicates. Only the first instance of each stylesheet will be included. |
| limit | Integer | The maximum number of items that were allowed to be in the list of fetched stylesheets. May be 0 in some cases (such as when when there are no fetched stylesheets. |
| start | Integer | The 1-based index of the first item in the list of fetched stylesheets. |
| page | Integer | The 1-based index of the paginated results returned in the list of fetched stylesheets, which is calculated from the start and limit parameters. Useful for paginated results. |
| total_count | Integer | The 1-based index of the first item in the list of fetched stylesheets |
| total_pages | Integer |
{% stylesheet output_to_template? [var, set, or assign]? variable? output_to_template? = value %}
{% stylesheets output_to_template? [var, set, or assign]? variable? output_to_template? = arguments %}
arguments
Add a stylesheet asset to the head of the current page via a <link> tag
{% add_stylesheet value attributes %}
attributes
Outputs an inline stylesheet in a <style> tag.
{% add_stylesheet inline [uniquename] [= attributes]? %}
attributes
{% end_stylesheet %}
Processes and outputs a partial template, javascript, or stylesheet.
If the partial template is a compiled template, then any custom fields from the partial template will be available in the parent template as well.
{% include [template|javascript|stylesheet]? variable =? attributes? %}
The path is significant when including objects. Every template, javascript, and stylesheet has a path, even if that is the root path (/). The location of the path to be included will always be based off of the path of the current object. So including 'header' from a template at the path '/pages' will attempt to process '/pages/header' while the same include from a template at the root path - which would attempt to process '/header'.
You always have the option of using an "absolute path" when including templates by beginning your included template name with '/'. Eg: {% include '/header' %} or {% include '/partials/header' %}. Absolute paths ignore the path of the current template when determining what partial to include.
You can also navigate up the directory structure using '../'. So including '../partials/header' from a template at the path '/agency/pages' will attempt to process '/agency/partials/header'.