• Dashboard
  • Customize
  • Edit this article
  • Profile Settings
  • Upgrade Plan
  • Helpjuice Knowledge Base
  • Sign Out

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
  • Home
  • Customization
  • Customization Guides
  • Liquid Templating Basics

Liquid Global Objects

Global liquid variables

Written by Guilherme Arantes

Updated at February 11th, 2026, by Guilherme Arantes

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Managing Users Permissions & Accessibility Content Management Analytics Video Tutorials
  • Article Editor
  • Swifty AI
  • Languages & Translations
  • Settings
    User Settings User Behavior Knowledge Base Settings Custom Domain
  • Authentication
  • Customization
    Customization Guides Themes
  • API & Webhooks
    API V3 API V2
  • Billing / Subscription
+ More

Table of Contents

Verification variables User / Account variables Template variables Content variables

Below is the complete reference list of global objects available in the template engine. These objects can be grouped into the following categories for easier understanding and implementation:

  • Verification variables — Provide information about the current page context.
  • User / Account variables — Provide information about the logged-in user and the knowledge base account.
  • Template variables — Provide data related to template assets and rendering.
  • Content variables — Provide access to commonly used content collections.

Verification variables

These variables describe the current page context. They are commonly used to dynamically assign HTML classes, apply conditional styling, or render specific sections depending on the page type. They are also useful when building Contextual Sections.

  • on_show_question_page — Returns true if the current page is a question page.
  • on_index_page — Returns true if the current page is the index (homepage).
  • on_contact_us_page — Returns true if the current page is the contact page.

User / Account variables

These variables expose information about the logged-in user and the knowledge base account. They are useful for personalization, permission-based rendering, and dynamic navigation elements.

  • account — Object containing properties related to the KB account.
  • account.name — Returns the account name.
  • account.main_js_url — Returns the URL of the main JavaScript file.
  • account.main_css_url — Returns the URL of the main CSS file.
  • internal_kb_user — Object containing data about the logged-in user.
  • current_user — Alias for internal_kb_user.
  • current_user.first_name — Returns the user’s first name.
  • current_user.last_name — Returns the user’s last name.
  • current_user.email — Returns the user’s email address.
  • current_user.role_id — Returns the user’s role (e.g., Admin, Viewer).

Template variables

These variables provide access to template-level assets and rendering helpers. They are required when integrating default scripts, injecting custom assets, or ensuring each page loads its required functionality.

  • javascript_includes — Returns a string containing the template’s main JavaScript bundle.
  • responsivemenu_js — Returns JavaScript responsible for the mobile menu behavior.
  • typewatch_js — Returns JavaScript used for search monitoring functionality.
  • questions_js — Returns JavaScript responsible for fetching and displaying search results.
  • default_main_js — Returns the default main JavaScript file.
  • main_js — Returns the custom JavaScript file defined for the template.
  • main_css — Returns the custom CSS file defined for the template.
  • content_for_layout — Outputs the rendered content of the current page and injects it into the template layout.

Content variables

These variables provide structured access to commonly used content collections. They are especially useful for building reusable UI sections such as featured lists or dashboards. For implementation examples, see Standard Sections.

  • recent_updates — Returns a list of the 20 most recently created or updated questions.
  • root_questions — Returns all questions located at the root level (dashboard level).
  • categories — Returns all categories in the KB, including nested child categories.
  • roots_categories — Returns only top-level categories directly under the KB.
  • top_questions — Returns the 20 most frequently visited questions.
  • most_popular_questions — Returns the same list as top_questions.
  • latest_questions — Returns the 20 most recently updated questions.
variables e-commerce

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Shopify/Liquid Variables and Objects Reference
  • Shopify/Liquid Complete Objects Reference

Copyright © 2026 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand