Documentation and Integration Center

Collection

A Collection is a superstructure that may contain multiple child structures, and entries of data. The collection is an integral part of Verb's content management model. Use a Collection whenever you need to store multiple entries of information within the same structure. For example, the website for Action Verb Records, an awesome record label, needs to have information about each artist signed to the label. In Verb, we'd create an Artists collection with child structures called Name, Bio, and Photo.

Fast Facts About the Collection superstructure
Common Use Examples:

News Posts, Items, Links, Press Entries, Stockists

Supported Validations: None.
Related VerbML Tags: The <v:collection> tag allows iterating through each entry in the collection.

In the backstage, collections are generally displayed in a List View. In this screenshot, we are viewing the Artists collection:

Nested Collections

Verb also allows you to create Nested Collections, a variant of the Collection. Nested collections are different from regular collections because their entries are organized into a tree hierarchy -- that is, some entries will be children of other entries. This is useful in a variety of situations.

One example is creating a category navigation for an online store. Imagine a guitar store -- they might have categories Guitars, Basses, and Drums, but want to subdivide Guitars into Acoustic and Electric. With a nested collection, this is possible and intuitive. They would also be able to go in and further subdivide electric guitars to 6-string and 12-string, for example.

To create a nested collection, check the box Allow nested structures? when creating a collection in the Verb > Content Management tab:

In the backstage, Nested Collections operate very similarly to collections. Entries that are children of other entries will be indented in the List View and the reordering screen. On the reordering screen, you may move entire branches of the tree into different locations, and easily move an entry from one level or parent to another.

In VerbML and PHP integration, child entries are treated like any other child entry. The Verb XPath name is the same for the parent and child.

Cancel

Post Comment to this Page:

If you have a question, comment, or interesting example to share, you can post directly to this page. If you ask a question and provide your E-Mail address, a Verb representative will follow-up with you to answer all of your questions.
Your Name (required):
E-Mail Address (optional, not public):
What is 11 + 4 (so we know you're human):
Comment:
All markup will be displayed exactly as shown here (we do not process HTML tags in your comment).

Note: While we don't actively moderate comments, anything inappropriate or unreleated to the current page will be removed. We'd rather spend our time making Verb better, so please make this easy on us. Thanks. :)