Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 objects for the given content type name

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'.

  • No labels