-
Notifications
You must be signed in to change notification settings - Fork 1
liquid default global variables
Vladimir Krylov edited this page Jul 24, 2017
·
4 revisions
Templates can be built using liquid templating language.
!!NB!! Set templates list
Default variables on each page:
- errors (collection)
- meta (if persist)
- categories (collection)
- collections (collection)
- cart (shopping cart)
- menus (collection)
- pages (collection)
- products (collection)
- blog_posts (collection)
- countries (collection)
- search (search result)
- shop (shop configuration)
- current_page - current page id. Integer
- path - page path
- params - parameters which were sent to server. Hash
- get_params - clean parameters which you got through GET request. No additional information. Data type: Hash
- template - action_name. Usually it is 'show'
- template_name - rendered template name
- url (object with the site possible urls)
- form_actions (object with the form possible urls to post data)
- settings (shop theme settings)