webCOMAND

collection::get_common_content_type()

Return the most specific ContentType shared by all objects in the collection, where the least specific is Object.

Prototype

ContentType get_common_content_type()

Return

The most specific ContentType shared by all objects in the collection.

Example

$objects = $collection->get("WHERE Identifier LIKE '%System%'");
$type = $objects->get_common_content_type();
echo("Common Content Type is " . $type->Title . "\n");

Related

collection::get_common_display_fields()