Collection field type
The Collection field type allows you to select Collection keys via the control panel (e.g. in an editable region).
It is useful when you have multiple Collections and you want to give the editor control over which one to display on certain pages.
Basic usage:
<perch:content id="collections" type="collection" label="Collections" max="1">
$collection_key = perch_content('Collection', true);
if($collection_key) {
perch_collection($collection_key, [
'template' => 'list.html'
]);
}
For more information refer to the documentation. You can download this field type from the changelog page.
If you face any problems, feel free to open an issue on GitHub.