Versions Compared

Key

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

Object that functions as a container for all abstract content objects within your site, filtered by content type name.

content_objects is only callable as an attribute on the Site object.

content_objects.[:content_type_name]

Returns all abstract content objectsContent Type kind: Abstract Content for the given content type name in a collection.

E.g., when you have a content type with the (plural) name 'categories'

...

, site.content_objects.categories

...

Returns an array of content objects for the content type 'categories' returns a collection object with all categories in it.