Skip to content

siansell/perch-fieldtype-collectionlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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" />

About

A fieldtype for Perch Runway CMS to select an item from a collection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages