restaurant Liquid Drop

This drop represents a business–whether it has one location or many. It can be accessed from any template or page by calling restaurant and has the following properties.

restaurant.name

Returns the name for this restaurant.

restaurant.domain

Returns the domain for this restaurant. Example: billsbbq.com

restaurant.subdomain

Returns the subdomained version of the domain for this restaurant. Example: billsbbq.sandwichboard.com

restaurant.has_multiple_menus

Returns true if this restaurant has more than one menu. Otherwise false.

restaurant.has_a_single_menu

Returns true if this restaurant has only one menu. Otherwise false.

restaurant.menu

Returns this restaurant's first menu as a drop.

restaurant.has_multiple_locations

Returns true if this restaurant has more than one location. Otherwise false.

restaurant.has_a_single_location

Returns true if this restaurant has only one location. Otherwise false.

restaurant.location

Returns this restaurant's first location as a drop.

restaurant.stats_tracker

Returns the tracker javascript for the stats module for this restaurant. Include this before the </body> tag in layout.liquid

 
restaurant_drop.txt · Last modified: 2008/09/29 16:25 by ianlotinsky