Collections

Collections are groups of objects. The CMS has several kinds of collections:

  • Blogs -
  • Products -
  • Photos -
  • Videos -
  • Places -
  • Testimonials -
  • Social media posts -
  • Offers (Landing pages) -

If you have created a page with any of the above types, the corresponding Liquid tag will be available that contains the collection. You can create the HTML to render a list of items in the collection like this:

Notice the liquid tag "blogs" on line 2 us being used in a loop.

Please refer to the standard Liquid documentation for how to use loops, conditional statements and so on.

Here are the tags available for each item in a collection:

  • - the ID of the item
  • - a unique long form random id
  • Collections - the title of the item
  • - a short summary of the item
  • - the main content of the item
  • (nil (text), "html", "text" or other format)
  • - The url to this item (eg: "/blog/my-cool-blog-post")
  • - IP address of user who created this item
  • - Number of people who like this item
  • - Date item was created
  • - Date item was last updated
  • - Number of views item received in its lifetime
  • - Number of views item received so far today
  • - Implementation defined
  • - A comma separated list of tags (eg: "tag1, tag2, tag3....")
  • - A link to an external site
  • - user defined
  • - user defined
  • - user defined
  • - user defined
  • - user defined
  • - user defined
  • - user defined
  • - fine print for pricing
  • - unit of pricing
  • - Currency code (eg: USD, CDN, INR, EUR)
  • - Language code (eg: "en", "fr", "es")
  • - user defined
  • - user defined
  • - Date item should be expired. Blank if not to be expired
  • - user defined
  • - user defined
  • - (0: published, 1: draft, 2: specific date to be used (pubdate), 3: private)
  • - user-defined
  • - user-defined
  • - The author object for the user who created this item
  • - The geographic location object for a place related to this item
  • - A list of attachments (videos, photos, files)
  • - The primary media item for this post
  • - A key/value list of custom fields in this collection
  • - The parent post of this record
Other internal tags are also available. We will update this list as we add or develop other item tags.
 

 

Last updated 1 year ago