Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The element object is accessible in the elements/_element.plate theme file, if it’s rendered by the {% render_content %} tag inside the {% content_for column %} block. Read more on how content_for works here.

The elements/_element.plate usually calls the {% content_for element %} block, which renders the :plural_element_type_name/_singular_element_type.plate theme file, with access to the same element object. However, in this case calling the singular content type name returns the element object.

...

element.content_type

Returns content_type object.