Liquid Drops

Everything you create in SandwichBoard can be accessed in your Liquid templates and web site pages through Liquid Drops. In software development terms, drops are objects with public member properties. Properties can be numbers, strings, collections, and even other drops. Drops can be accessed in both output {{ }} and tag {% %} Liquid blocks.

The Restaurant drop represents a business–whether it has one location or many. It can be accessed from any template or page by calling restaurant.

The Menu, Menu Section, Menu Item, and Menu Item Variation drops represent a restaurant's menus. They can be accessed from any template or page by calling the menus collection or menu in the menu.liquid template. Menus have Menu Sections; Menu Sections have Menu Items; Menu Items can come in Menu Item Variations.

The Article drop represents an article created in SandwichBoard. Articles can be accessed from any template or page by calling the articles or articles_by_keyword collections.

The Event drop represents an event happening at one of a restaurant's locations. Events can be accessed from any template or page by calling the events or events_by_keyword collections.

The Album drop represents an image album. Albums can be accessed from any template or page by calling the albums collection or album from the album.liquid template. Albums have Images; Images can have Comments.

The Location, Schedule, and Schedule Entry drops represent a restaurant's locations and their hours of operation. They can be accessed from any template or page by calling the locations collection or location in the location.liquid template.

The Page drop represents an arbitrary web site page created in SandwichBoard. Pages can be accessed from any template or page by calling the pages collection.

 
drops.txt · Last modified: 2008/11/21 21:54 by ianlotinsky