US English (US)
BS Bosnian

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
English (US)
US English (US)
BS Bosnian
  • Home
  • Customization
  • Customization Guides
  • Advanced Customization

How Can I Contextualize The Template?

Written by Jose Souza

Updated at October 15th, 2021

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.

  • Integrations
  • Getting Started
    New to Helpjuice? Start Here Users Accessibility Content Management Multiple Languages/Translations & Localization Multilingual Knowledge Bases Analytics Video Tutorials
  • Customization
    Customization Guides
  • API V2
  • API V3
  • Article Editor
  • Swifty (In-App Widget)
  • Billing / Subscription
  • Authentication
+ More

Is possible to hide or show different parts of your template according to the current page being accessed using liquid tags.

This is a fairly simple process that essentially just require some test conditions, and those test out which page the user is currently on,  there are some specific tags like:

  • on_show_question_page: Variable that returns a true value if the current page is a question;
  • on_index_page: Variable that returns a true value if the current page is the index page;
  • on_contact_us_page: Variable that returns a true value if the current page is the contact-us page;

and using a similar tactic you can also test the code below

category != null

the latter being actually a logical text that could be read as “ category is not null”.


An example of usage for the tags:

{% if on_show_question_page %}
  <!--content for question page>
{% elsif on_index_page %}
  <!--content for index page-->
{% elsif on_contact_us_page %}
  <!--content for contact page→
{% elsif category != null %}
  <!--content for category page-->
{% endif %}

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Using Custom Inputs On Your Contact Form
  • Integrating Your Knowledge Base With Your Ticketing System
  • Displaying The Most Popular Questions
  • How To Show Different Number Of Questions On Homepage
  • Adding Custom CSS

Copyright © 2022 - 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 success@helpjuice.com
Expand