Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.47 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.47 KB

Perch CollectionList fieldtype

A fieldtype for Perch Runway CMS to select an item from a collection. Perch Runway only. Similar to Dataselect, but for Perch Runway Collections rather than Perch regions.

You probably want to use <perch:related /> instead, but this fieldtype is useful in some situations. For example, if you want to limit the user to a single selection, or for use inside a <perch:repeater /> tag (where the <perch:related /> tag doesn't seem to work).

Installation

Copy the collectionlist folder to perch/addons/fieldtypes.

General documentation on Perch fieldtypes can be found on the Perch support site.

Attributes

  • collection: Required. The name of the collection.
  • options: Required. Space delimited list of field IDs in the collection to populate the select box with.
  • values: Optional. The ID of another field in the collection to take the values from. If omitted, the internal itemID is used.

Examples

<perch:content id="book" type="collectionlist" collection="Books" label="Book" options="title" /> <perch:content id="book" type="collectionlist" collection="Books" label="Book" options="title author" /> <perch:content id="book" type="collectionlist" collection="Books" label="Book" options="title" values="isbn" />