Models

When using Shortlist you'll primarily be interacting with Shortlist's underlying models.

There are 2 forward facing models, and 1 under the hood model, more useful for plugin developers extending Shortlist.

The Main Models

Shortlist_ItemModel
The Model for the individual items. Has utility contains functions and helpers for all the main implementation details you'll need.
Details and Usage →
Shortlist_ListModel
The Model for the user's list. This contains all the variables and helper functions needed for list interactions
Details and Usage →

Note: Both Item and List models are their own ElementTypes, and can each have their own content, custom fields and more. You can integrate both into custom plugins as any other ElementType.

Under the Hood Models

Shortlist_UserModel
This hidden model extends the basic user model and allows for seamless usage of Shortlist by both logged in members and guests. <br/>In normal Shortlist usage you won't have to worry about this