Menu

Variables - Version 1.X.X

List of Variables for Custom Themes (HTML/CSS/Liquid)


 



* This feature is intended for developers comfortable with HTML & CSS. *
Related Article: Getting Started with Custom Themes

With custom themes, you can completely modify and change site and course landing pages, catalogue pages, the student dashboard, the sign in and sign up pages, the checkout and your privacy policy and terms of use pages with full access to liquid variables for those pages.

You are responsible for fully testing your code to confirm the site will continue to work on all devices/screen sizes/browsers as you intend - don't forget to check for mobile responsiveness! Custom coding support is not provided by our team.


Are you a designer new to Liquid? This is a valuable primer:
https://github.com/Shopify/liquid/wiki/Liquid-for-Designers

Liquid Template Variables


  • Each template has access to a variable called 'page'
  • Each page variable can contain other variables. These are discussed in detail below.
  • Every page variable has a variable called 'site'. This variable contains global tenant-specific properties.
  • Every page variable contains several properties 
    • 'current_url' - This property will return the current url of the page.
    • 'page_identifier' - This property will identify the page type. For example, the page_identifier for the site landing page is 'site_landing_page'
    • 'page_name' - This property will correspond to the name of the page. If you have a course landing page called 'My Fancy Course Landing Page', then 'page_name' will equal 'My Fancy Course Landing Page'
    • 'footer_required' - This property indicates whether a page requires a footer.
    • 'header_required' - This property indicates whether a page requires a header.

Global Variables

These variables are available anywhere!

Base Page

description These are availabile on any page

locator description
page.page_identifier The identifier of the page. Signals liquid to render a particular template
page.header_required Override if you have a page that should not show the header
page.footer_required Override if you have a page that should not show the footer
page.header_without_links_required Override if you have a page that should show the header with no links. For example, the checkout or the signin/signup pages


Current User

description Available current user data

locator description
site.current_user.stripe_customer_id Get stripe customer id
site.current_user.signed_in Is the current user signed in? True or false
site.current_user.first_name_last_initial Get the first name and last initial of the current user
site.current_user.full_name Get the full name of the user
site.current_user.email
Get the email address of the user
site.current_user.is_site_owner Is the user the site owner? True or false
site.current_user.is_site_admin Is the user an administrator for this site? True or false
site.current_user.is_affiliate Is the user an affiliate on the site? True or false
site.current_user.is_student Is the user a student on the site? True of false
site.current_user.is_course_admin Is the user a course admin for a course on this site? True or false
site.current_user.can_change_notifications Can the user change notifications? True or false
site.current_user.has_certificates Does the user have certificates? True or false
site.current_user.avatar_url Get the current user's avatar url
site.current_user.default_user_avatar_url Get the thinkific default avatar url
site.current_user.account_url The the current user's account url
site.current_user.signed_in_via_sso Is the user signed in via SSO (Single Sign-On)? True or false
site.current_user.is_first_sign_in Is this the first time the user has signed in? True of false
site.current_user.sign_in_count The number of times the current user has signed in    
site.current_user.current_sign_in_at The date of the current user's current sign in
site.current_user.last_sign_in_at The date of the current user's last sign in (this would be the date prior to current_sign_in_at) 
site.current_user.current_sign_in_ip The IP address of the current user, right now
site.current_user.last_sign_in_ip The IP address of the current user on when they previously signed in                                
site.current_user.custom_profile_fields A collection of custom profile fields (if any) and their values for the current user    


Site

description The site variable contains information related to your site and is available for every page in your theme

locator description
site.custom_pages Get your site's current custom pages
site.theme_version Get your site's current theme version
site.subdomain Get your site's current subdomain
site.site_wide_footer_scripts Get your site's current footer scripts
site.has_site_wide_footer_scripts Does you site have site wide footer scripts? True or false.
site.site_wide_custom_css Get your site's current site-wide custom css
site.has_site_wide_custom_css Does your site have site-wide css? True or false.
site.order_tracking_code Get your site's order tracking code
site.signup_tracking_code Get your site's signup tracking code
site.has_google_verification_meta_tag Does your site have a google verification meta tag? True or false
site.google_verification_meta_tag Get your site's current google verification meta tag
site.brand_colour Get your site's current brand colour
site.primary_button_colour Get site primary button colour
site.secondary_button_colour Get site secondary button colour
site.header_background_colour Get site header background colour
site.header_text_colour Get site header text colour
site.footer_background_colour Get site footer background colour
site.current_user Get the current logged-in user (yields all current user data)
site.currency_symbol Get the site's currency symbol
site.collections Get the site's collections (yields all collections, each with attached collection data)
site.copyright Get the site's copyright (© Copyright {{ tenants name }} {{ current year }})
site.has_home_header Does the site have a home header? True or false.
site.has_home_subheader Does the site have a home subheader? Otherwise known as a header subtitle. True or false
site.home_header Get the site's home header
site.home_subheader Get the site's home subheader/subtitle
site.support_email Get the site's support email
site.has_terms Does the site have terms and conditions? True or false
site.has_privacy_policy Does the site have a privacy policy? True or false
site.has_logo Does the site have a logo? True or false.
site.has_banner Does the site have a banner image? True or false
site.name Get the name of the tenant's school
site.has_custom_left_links Does the site have custom links for the left? True or false
site.custom_left_links Get the site's custom left links
site.has_custom_right_links Does the site have custom links for the right? True or false
site.custom_right_links Get the site's custom right links
site.remote_signin_enabled Does the tenant have remote sign-in enabled?
site.certificates_enabled Does the tenant have certificates enabled?
site.banner_url Get the banner image url
site.logo_url Get the logo image url
site.default_user_avatar_url Get the default user avatar image url
site.theme_css_url Get the theme css url
site.dashboard_url Get the dashboard url
site.course_administrator_dashboard_url Get the course administrator dashboard url
site.affiliate_dashboard_url Get the affiliate dashboard url
site.sign_out_url Get the sign-out url
site.privacy_policy_url Get the privacy policy url
site.terms_url Get the terms and conditions url
site.home_url Get the home page url
site.root_url Get the root site page url
site.collections_url Get the site collections url
site.student_dashboard_url Get the student dashboard url
site.sign_in_url Get the sign-in url
site.account_edit_url Get the account edit url
site.account_edit_password_url Get the account password edit url
site.account_certificates_url Get the account certificates url
site.account_notifications_edit_url Get the account edit notifications url
site.account_billings_url Get the account billings url
site.account_orders_url Get the account orders url
site.has_custom_profile_field_definitions Get a true/false value indicating whether the site has any custom profile field definitions
site.product_cards Get the products of the site


Pages

These variables are only available on their specific pages.

Site Landing Page

The site landing page has access to any of the global variables. When building a site landing page, please take a look at a working example in the basic theme folder "Site Pages/Site Landing Page"

Bundle Page

description This is the landing page for a bundle. It is used to supply data to any bundle landing page template that you create.
context available bundle_landing_page

locator description
page.bundle_name Name of the bundle
page.bundle_has_description Does the bundle have a description? True or false.
page.bundle_description Bundle description
page.bundle_num_of_courses Number of courses in the bundle
page.bundle_has_banner Does the bundle have a banner? True or false.
page.bundle_is_free Is the bundle free? True or false.
page.bundle_enroll_for_free_text Get enroll for free text for this bundle
page.bundle_enroll_for_free_url Get enroll for free url for this bundle
page.bundle_paid_enroll_url Get paid enroll url for this bundle
page.bundle_buy_button_text Get bundle buy button text
page.bundle_tagline Get bundle tagline
page.bundle_course_contents_description Get bundle course contents description
page.has_coupon_code Does the bundle have a coupon code? True or false
page.coupon_supported Does the bundle support coupons? True or false
page.bundle_courses Get bundle courses
page.render_promotion Get render promotion (???)
page.render_event Get render event (???)
page.linear_gradient_rgb Get linear gradient in RGB form for the site banner overlay
page.bundle_banner_image_url Get bundle banner image
page.banner_overlay_opacity_percentage Get banner overlay opacity percentage
page.has_seo_title Does the product have an seo title set? True or false
page.has_seo_description Does the product have an seo description set? True or false
page.seo_title Get the SEO Title
page.seo_description Get the SEO Description
page.has_keywords Does the product have keywords set? True or false
page.keywords Get the product's keywords
page.related_products Get the product's related products
page.has_related_products Does the product have related products? True or false
page.related_products_label Get the related product's label
page.has_related_products_label Does the product have a related products label? True or false
page.has_landing_page_code Does the product have custom landing page code? True or false
page.landing_page_code Get the custom landing page code
page.is_hidden  Is the bundle hidden?


Checkout Page

description This is the page that the buyer is shown after making a purchase
context available checkout_page

locator description
page.checkout_form Get checkout form html
page.contains_subscription_product Does the checkout include a subscription product? True or false
page.course_name Get the course name
page.course_price Get the course price
page.has_subscription_products Does the course have subscription products? True or false. Duplicate of above
page.stripe_checkout_is_allowed Is stripe checkout allowed?
page.checkout_coupons_disabled Are coupons on checkout disabled? True or false.
page.header_without_links_required Is a header without links required? Defaults to true.


Checkout Sign-in/Sign-out Page

description This is the page that is displayed to an anonymous user as they enter the checkout flow
context available checkout_signin_signup_page

locator description
page.checkout_authentication_form Get checkout authentication form
page.active_tab Get active tab
page.checkout_coupons_disabled Are checkout coupons disabled? True or false.
page.header_without_links_required Is a header without links required? True or false. Defaults to true.


Checkout Thank-you Page

description This is the page that the buyer is shown after making a purchase
context available checkout_thankyou_page

locator description
page.related_products Get related products (returns courses)
page.has_related_products Does the checkout have related products? True or false.
page.related_products_label Get the related products label
page.has_related_products_label Does a label for the related products exist? True or false.
page.take_course_url Get the take course url
page.order_receipt_url Get the order-receipt url
page.items Get a list of items that have been purchased
page.product_is_course Is the product a course? True or false.
page.bundled_courses Get bundled courses
page.has_more_bundled_courses Does the purchased course have more bundled courses? True or false
page.remaining_bundle_courses_message Get the remaining bundle courses message


Collection Page

description This shows courses and bundles in a specific collection/category
context available collection_page

locator description
page.name Get the name of the collection
page.current_collection_id Get the collection id
page.current_collection_slug get the slug of the collection
page.current_collection_name Get the name of the current collection
page.has_search_query Does the collection have a search query applied? True or false.
page.search_query Get the currently applied search query
page.should_paginate_products Should the collection be paginated? Returns true if the number of pages in the collection is greater than 1. True or false.
page.product_page_numbers Get available page numbers for pagination of the collection
page.current_product_page Get the current product page
page.has_products Does the collection have products? True or false.
page.product_cards Get the product of the page


Collections Page Drop

description This page shows all the published courses without filtering by collection/category
context available collections_page

locator description
page.has_search_query Does the collection have a search query applied? True or false.
page.search_query Get the currently applied search query
page.should_paginate_products Should the collection be paginated? Returns true if the number of pages in the collection is greater than 1. True or false.
page.product_page_numbers Get available page numbers for pagination of the collection
page.current_product_page Get the current product page
page.has_products Does the collection have products? True or false.
page.product_cards Get the product of the page


Course Landing Page

description This is the landing page for a course. It is used to supply data to any course landing page template that you create.
context available course_landing_page

locator description
page.is_user_enrolled_in_course Is the current user enrolled in the course? True or false
page.course Yields course data
page.course_description Get the course description
page.course_has_description Does the course have a description? True or false.
page.show_bottom_call_to_action Should the bottom call to action be shown? True or false
page.course_is_draft Is the course currently a draft? True or false
page.course_is_public Is the course public? True or false
page.has_course_banner Does the course have a banner? True or false
page.course_buy_button_text Get the course buy button text
page.coupon_code_provided Has a coupon code been provided? True or false
page.valid_coupon_present Has a valid coupon been entered? True or false
page.coupon_supported Does the course support coupons? True or false
page.thinkific_analytics_course_data Get the thinkific analyitics course data
page.has_course_contact_information Does the course have course contact information? True or false
page.course_instructor_title Get the course instructor's title
page.course_contact_information Get the course contact information
page.has_course_subtitle Does the course have a course subtitle? True or false
page.course_instructor_bio Get the course instructor bio
page.course_instructor_email Get the course instructor's email
page.has_course_instructor_email Does the course have a course instructor's email? True or false
page.course_instructor_full_name Get the course instructor's full name
page.course_subtitle Get the course's subtitle
page.has_course_intro_video Does the course have an intro video?
page.course_name Get the course's name
page.course_price Get the course's price
page.course_price_with_applied_coupon Get the course price with the currently applied coupon
page.coupon_discount_amount Get the currently applied coupon's discount amount
page.coupon_is_percentage Is the currently applied coupon applied as a percentage off? True or false
page.show_enroll_for_free_link Should the enroll for free link be displayed? True or false
page.show_enroll_in_free_trial_link Should the enroll in a free trial link be displayed? True or false
page.show_purchase_link Should the course purchase link be displayed? True or false
page.show_resume_link Should the resume course link be displayed? True or false
page.enrollment_complete Is the current user's enrollment in this course complete? True or false
page.reviews_enabled Are reviews enabled for this course? True or false
page.approved_reviews_count Get the count of currently approved course reviews
page.any_approved_reviews Get any approved course reviews for this course
page.linear_gradient_rgb Get the linear gradient rgba value to be applied as an overlay to the course banner
page.banner_overlay_opacity_percentage Get the banner overlay opacity percentage
page.has_additional_prices Does the course have any additional prices? True or false
page.additional_prices Get the course's additional prices
page.course_instructor_avatar_url Get the course instructor avatar url
page.course_banner_url Get the course banner url
page.resume_course_url Get the resume course url
page.buy_course_url Get the buy course url
page.enroll_for_free_url Get the enroll for free url
page.free_trial_enrollment_url Get the free trial enrollment url
page.related_products_url Get the related products url
page.has_seo_title Does the product have an seo title set? True or false
page.has_seo_description Does the product have an seo description set? True or false
page.seo_title Get the SEO Title
page.seo_description Get the SEO Description
page.has_keywords Does the product have keywords set? True or false
page.keywords Get the product's keywords
page.related_products Get the product's related products
page.has_related_products Does the product have related products? True or false
page.related_products_label Get the related product's label
page.has_related_products_label Does the product have a related products label? True or false
page.has_landing_page_code Does the product have custom landing page code? True or false
page.landing_page_code Get the custom landing page code
page.is_hidden Is the course hidden?


Custom Page

description These are the variables available on any custom page that you create
context available custom_page

locator description
page.content Get the content of the page (returns marked up html)
page.name Get the name of the page
page.published Is the page published? True or false
page.public Is the page public? True or false
page.url Get the url of the page
page.has_seo_title Does the page have an SEO title? True or false
page.has_seo_description Does the page have an SEO description? True or false
page.has_seo_metatags Does the page have SEO Metatags? True or false
page.has_keywords Does the page have keywords? True or false
page.seo_title Get the page's SEO Title
page.seo_description Get the page's SEO Description
page.seo_metatags Get the page's SEO Metatags
page.keywords Get the page's keywords


Dashboard Page

description This page shows all the published courses that a student is currently enrolled in, but also exposes variables to access all courses within the school
context available student_dashboard_page

locator description
page.status_types Get the possible enrollment states to populate the status list for searching
page.all_cards Get all product cards (cards of any status) that are attached to the student
page.enrolled_cards Get all product cards in which the student is enrolled
page.not_enrolled_cards Get all product cards attached to the student in which the student is not enrolled
page.current_collection_id Get the current collection id
page.current_collection_name Get the current collection name
page.current_collection_slug Get the current collection slug


Edit Course Review Page

description This is the page where a student can review a course. Specifically, this page is where the student edits a review that they've already made.
context available edit_course_review_page

locator description
page.course_review_form Get the course review form html
page.has_form_errors Does the form have errors? True or false
page.form_error_messages Get the form error messages
page.form_error_count Get the number of the errors in the form


Express Sign In Page

description This is the page that your users set their password on
context available express_sign_in_page

locator description
page.express_sign_in_form Get the express sign-in form html


Home Page

description This is the main landing page of the site. It is shown when someone visits the root url of your site (mysite.thinkific.com/), except when you have only one published course or bundle.
context available site_landing_page

locator description
page.product_cards Get all of the product cards


My Account Billings Page

description This is the page where a student can view their saved billing information (if any).
context available my_account_billings_page

locator description
page.edit_billings_form Get the edit billings form html
page.has_form_errors Does the form have errors? True or false
page.form_error_messages Get the form error messages
page.form_error_count Get the form error count


My Account Certificates Page

description This is the page where a student can view their certificates. Note: This page is only shown if the site owner has the Completion Certificates feature.
context available my_account_certificates_page

locator description
page.certificates_table Get certificates table html


My Account Notifications Page

description This is the page where a student can view and edit their notifications settings.
context available my_account_notifications_page

locator description
page.edit_notifications_form Get edit notifications form
page.has_form_errors Does the form have errors? True or false
page.form_error_messages Get form error messages
page.form_error_count Get form errors count


My Account Order Page

description This is the page where a student can view a single order in detail.
context available my_account_order_page

locator description
page.order Get the order
page.table_summary Get the summary table html


My Account Orders Page

description This is the page where a student can view their orders.
context available my_account_order_list_page

locator description
page.has_orders Does the account have any orders? True or false
page.orders Get the account's orders


My Account Page

description This is the page where a student can view and edit their account details.
context available my_account_page

locator description
page.edit_account_form Get the edit account form
page.has_form_errors Does the form have any errors? True or false
page.form_error_messages Get the form's error messages
page.form_error_count Get the form's error count


My Account Password Page

description This is the page under 'My Account' where a user can change their password.
context available my_account_password_page

locator description
page.edit_password_form Get the edit password form
page.has_form_errors Does the edit password form have errors? True or false
page.form_error_messages Get the form error messages
page.form_error_count Get the form error count


New Course Review Page

description This is the page where a student can review a course. Specifically, this page is where the student creates the review in the first place.
context available new_course_review_page

locator description
page.course_review_form Get the review form html
page.has_form_errors Does the form have any errors? True or false
page.form_error_messages Get the form's error messages
page.form_error_count Get the form's error count


Password Reset Page

description This is the page where a student will land after following the 'change password' link from their email. Here they can change their password.
context available password_reset_page

locator description
page.password_reset_form Get the password reset form


Password Reset Request Page

description This is the page where a student can request a change of their password
context available password_reset_request_page

locator description
page.password_reset_request_form Get password reset request form html


Password Reset Sent Page

description This is the page where a student will land after requesting a change of password. Displays a message to check their email.
context available password_reset_sent_page

No variables are available yet!



Paypal Confirm Page

description This is the page that a buyer lands on after going through the PayPal Express Checkout process. It is the last step where they must confirm the purchase.
context available paypal_confirmation_page

locator description
page.paypal_confirmation_form Get paypal confirmation form html
page.product_display_price Get the product's display price
page.product_name Get the product's name
page.secure_payment_badge_url Get the secure payment badge url


Privacy Policy Page

description This is the page that displays your site's privacy policy
context available privacy_policy_page

No variables are available yet!



Sign In Page

description This is the page that your users sign in on
context available sign_in_page

locator description
page.sign_in_form Get the sign-in form html
page.sign_up_url Get the sign-in url
page.has_remote_signin Does the user have a remove sign-in? True or false
page.has_linkedin_enabled Does the user have LinkedIn enabled? True or false
page.supports_remote_auth Does the tenant support remote authorization? True or false
page.linkedin_oauth_url User LinkedIn OAUTH Url
page.tenant_oauth_url Tenant OAUTH Url
page.tenant_auth_text Tenant authorization text


Sign Up Page

description This is the page that your users sign up on
context available sign_up_page

locator description
page.sign_up_form Get the sign-up (register) form html
page.sign_in_url Get the sign-in url
page.has_remote_signin Does the user have a remove sign-in? True or false
page.has_linkedin_enabled Does the user have LinkedIn enabled? True or false
page.supports_remote_auth Does the tenant support remote authorization? True or false
page.linkedin_oauth_url User LinkedIn OAUTH Url
page.tenant_oauth_url Tenant OAUTH Url
page.tenant_auth_text Tenant authorization text


Terms of Use Page

description This is the page that displays your site's terms of use
context available terms_of_use_page

No variables are available yet!



Objects

These variables are reachable in some pages

Related Products

description These variables are used to generate course and bundle upsells on your course landing pages
example liquid accessor {% for related_product in page.related_products %}

locator description
related_product.name Name of the bundle
related_product.buy_button_text Text for the Buy Button
related_product.price Price of the current product
related_product.display_price Display Price of the current product
related_product.card_image_url card image url
related_product.add_to_cart_url add product to cart url
related_product.landing_page_url landing page url
related_product.free_enrollment_url free enrollment url


Authorization Helpers

description These variables refer to the various authorization methods that are enabled for the school and are therefore available for authorizing students

locator description
page.has_remote_signin Does the user have a remove sign-in? True or false
page.has_linkedin_enabled Does the user have LinkedIn enabled? True or false
page.supports_remote_auth Does the tenant support remote authorization? True or false
page.linkedin_oauth_url User LinkedIn OAUTH Url
page.tenant_oauth_url Tenant OAUTH Url
page.tenant_auth_text Tenant authorization text


Bundle Card

description Contains information about the courses in a particular bundle
example liquid accessor {% for bundle in page.bundle_courses %}

locator description
bundle.name Get the bundle name
bundle.status Get the bundle status
bundle.public Is the bundle public? True or false
bundle.price_css_class Get bundle css class for the card price container
bundle.display_price Get bundle display price
bundle.is_course Is the product a course? For bundle object, will be false. True or false
bundle.related_products Get related_products for bundle
bundle.tagline Get tagline for bundle
bundle.landing_page_url Get url for landing page of bundle
bundle.image_url Get url for bundle image


Bundle Course Card (Course within a bundle of courses)

description Available liquid variables for a course inside of bundle
example liquid accessor {% for course in page.bundle_courses %}

locator description
course.name Get the name of the course
course.position Get the position of the course within the bundle
course.subtitle Get the subtitle of the course
course.take_course_url Get the take-course url
course.buy_course_url Get the buy course url
course.enroll_for_free_url Get the url to enroll for free
course.free_trial_enrollment_url Get the free trial enrollment url
course.landing_page_url Get the course landing page url
course.image_url Get the course card image url


Chapter

description Available liquid variables on the chapter object
example liquid accessor {% for chapter in course.chapters %}

locator description
chapter.contents Get chapter contents
chapter.name Get chapter name
chapter.duration_in_seconds Get chapter duration in seconds (chapter must have a timed content item, e.g. video)
chapter.duration_in_seconds_as_time Get duration in seconds as time
chapter.description Get chapter description
chapter.has_lessons Does the chapter have lessons? True or false
chapter.lesson_count Get count of lessons in chapter
chapter.has_quizzes Does the chapter have quizzes? True or false
chapter.quiz_count Get count of quizzes in chapter
chapter.has_surveys Does the chapter have surveys? True or false
chapter.survey_count Get count of surveys in chapter
chapter.has_multimedia Does the chapter have multimedia? True or false
chapter.multimedia_count Get count of multimedia in chapter
chapter.has_text Does the chapter have text? True or false
chapter.text_count Get count of texts in chapter
chapter.has_pdfs Does the chapter have pdfs? True or false
chapter.pdf_count Get count of pdfs in chapter
chapter.has_disqus Does the chapter have disqus chats? True or false
chapter.disqus_count Get count of disqus chats in chapter
chapter.has_audios Does the chapter have audio? True or false
chapter.audio_count Get count of audios in chapter
chapter.has_downloads Does the chapter have downloads? True or false
chapter.download_count Get count of downloads in chapter
chapter.has_presentations Does the chapter have presentations? True or false
chapter.presentation_count Get count of presentations in chapter
chapter.has_brillium_exams Does the chapter have brillium exams? True or false
chapter.brillium_exam_count Get count of brillium exams in chapter


Collections Drop

description These variables are available for use in the product search bar when viewing the collection pages or collections page
example liquid accessor {% for collection in site.collection %}

locator description
collection.name Get the name of the collection
collection.id Get the collection ID
collection.url Get the url for the collection


Collection Helpers

description These variables are accessible from the collection/collections pages

locator description
page.has_search_query Does the collection have a search query applied? True or false.
page.search_query Get the currently applied search query
page.should_paginate_products Should the collection be paginated? Returns true if the number of pages in the collection is greater than 1. True or false.
page.product_page_numbers Get available page numbers for pagination of the collection
page.current_product_page Get the current product page
page.has_products Does the collection have products? True or false.
page.product_cards Get the product of the page


Content

description Variables that are available in chapter objects
example liquid accessor {% for content in chapter.contents %}

locator description
content.name Get the name of the content
content.free Is the content free? True or false.
content.icon_css_class Get the icon css class for the content
content.take_course_url Get the take course url


Course Card

description This section is responsible for setting variables for individual course cards. Bundles are also included in the list. To determine which is which, use the product.is_course variable
example liquid accessor {% for product in page.product_cards %}

locator description
product.name Name of the object (course or bundle)
product.status Status of the object
product.instructor_full_name Full name of the instructor
product.public Is the object public? True or false.
product.price_css_class CSS Class that will be added to the object's price container
product.display_price Display price of the object
product.subtitle_truncated Truncated subtitle of the object
product.subtitle Full (non-truncated) subtitle of the object
product.approved_reviews_count Total number of approved reviews
product.reviews_enabled Are reviews enabled? True or false
product.average_rating Average review rating of the object
product.is_course Is the object a course? True or false
product.landing_page_url The URL for the landing page of the object
product.image_url The URL for the image attached to the object


Course

description Variables accessible on course-related pages (such as course landing) on the page variable as well as elsewhere (e.g., bundle pages) through their own page-specific pages (e.g., page.bundle_courses on a bundle page)
example liquid accessor {% for course in page.bundle_courses %}

locator description
course.chapters or page.course.chapters Get course chapters
course.intro_video_on_wistia or page.course.intro_video_on_wistia Is course intro video hosted on wistia? True or false
course.intro_video_on_youtube or page.course.intro_video_on_youtube Is course intro video hosted on youtube? True or false
course.id or page.course.id Get the course ID
course.video_screenshot_url or page.course.video_screenshot_url Get the video screenshot URL
course.name or page.course.name Get the course name
course.video_id or page.course.video_id Get the video id
course.video_identifier or page.course.video_identifier Get the video identifier
course.youtube_video_id or page.course.youtube_video_id Get the youtube video identifier (the end part of the youtube URL, after the ?v=: youtube.com/watch?v=iwJ8Bf424GM)
course.has_lessons or page.course.has_lessons Does the course have lessons? True or false
course.lesson_count or page.course.lesson_count Get the course lessons count
course.has_quizzes or page.course.has_quizzes Does the course have quizzes? True or false
course.quiz_count or page.course.quiz_count Get the course quizzes count
course.has_surveys or page.course.has_surveys Does the course have surveys? True or false
course.survey_count or page.course.survey_count Get the course surveys count
course.has_multimedia or page.course.has_multimedia Does the course have multimedias? True or false
course.multimedia_count or page.course.multimedia_count Get the course multimedias count
course.has_text or page.course.has_text Does the course have text lessons? True or false
course.text_count or page.course.text_count Get the course texts count
course.has_pdfs or page.course.has_pdfs Does the course have pdfs? True or false
course.pdf_count or page.course.pdf_count Get the course pdfs count
course.has_disqus or page.course.has_disqus Does the course have disqus chats? True or false
course.disqus_count or page.course.disqus_count Get the course disqus count
course.has_audios or page.course.has_audios Does the course have audios? True or false
course.audio_count or page.course.audio_count Get the course audios count
course.has_downloads or page.course.has_downloads Does the course have downloads? True or false
course.download_count or page.course.download_count Get the course downloads count
course.has_presentations or page.course.has_presentations Does the course have presentations? True or false
course.presentation_count or page.course.presentation_count Get the course presentations count
course.has_brillium_exams or page.course.has_brillium_exams Does the course have brillium exams? True or false
course.brillium_exam_count or page.course.brillium_exam_count Get the course brillium exams count
course.has_duration or page.course.has_duration Does the course have an expected duration set? True or false
course.duration or page.course.duration Get the expected course duration
course.course_reviews or page.course.course_reviews Get the course reviews
course.approved_reviews_count or page.course.approved_reviews_count Get the course approved reviews count
course.average_rating or page.course.average_rating Get the course's average review rating
course.reviews_enabled or page.course.reviews_enabled Are reviews enabled for the course? True or false
course.subtitle_truncated or page.course.subtitle_truncated Get the truncated subtitle of the course
course.subtitle or page.course.subtitle Get the full subtitle of the course


Course Review

description Variables available on course review objects
example liquid accessor {% for review in course.course_reviews %}

locator description
review.title Get the title of the review
review.user Get the user who posted the review
review.review_text Get the review text
review.rating Get the review rating
review.average_rating Get the average course review rating for the course
review.approved_reviews_count Get the approved reviews count for the course
review.course Get the attached course for this review


Custom Link

description Variables available for any user-created custom links
example liquid accessor {% for link in site.custom_left_links %} or {% for link in site.custom_right_links %}

locator description
link.formatted_url Get the properly formatted target url (href)
link.target Get the link target (e.g., Link)
link.formatted_text Get the formatted text of the link
link.position Get the position of the link within the menu
link.is_private Is the link private? True or false
link.is_public Is the link public? True or false


Dashboard Course Card Drop

description Variables available on the student dashboard for the school. Please check out the file "snippets/pagination" in the basic theme package to see an working example of how to use these variables.
example liquid accessor {% for card in paginate.collection %}

locator description
card.created_at Get the creation date of the product
card.display_price Get the display price of the product
card.enrollment_complete Is the student's enrollment in this product complete? True or false
card.enrollment_expired Is the student's enrollment in this product expired? True or false
card.enrollment_expiry_date Get the enrollment expiry date
card.has_enrollment Is the student enrolled in the product? True or false
card.has_free_trial Does the product have a free trial? True or false
card.instructor_full_name Get the full name of the instructor of the product (course)
card.last_accessed Get the date of last student access to the product
card.name Get the name of the product
card.name_truncated Get the truncated name of the product (truncated to 70 characters)
card.position Get the position of the product within the dashboard
card.progress_percentage Get the percent completed of the course so far
card.price_css_class Get the css class for the price on the course card
card.show_enroll_in_free_trial_link Should the card show the free trial link? True or false
card.show_enroll_for_free_link Should the card show the enroll for free link? True or false
card.show_purchase_link Should the card show the purchase link? True or false
card.show_resume_link Should the card show the resume link? True or false
card.subtitle_truncated Get the truncated subtitle for the course
card.subtitle Get the subtitle for the course
card.course_reviews_enabled Are course reviews enabled for the product? True or false
card.image_url Get the course card image for the product
card.landing_page_url Get the landing page url for the product
card.free_enroll_url Get the free enrollment url for the product
card.free_trial_enroll_url Get the free trial enrollment url
card.purchase_course_url Get the product purchase url
card.resume_course_url Get the resume course url
card.review_course_url Get the review course url
card.course_review_url Get the review course url (repeat of above)


Line Item

description These variables yield the name of the product which a student has just purchased
example liquid accessor {% for item in page.items %}

locator description
item.name Get the name of the line item


My Account Order

description Variables available for the order object
example liquid accessor {% for order in page.orders %}

locator description
order.id Get the order ID
order.number Get the order number
order.has_subscription Does the order have a subscription product in it? True or false
order.product_name Get the product name
order.created_date Get the date that the order was created on
order.payment_method Get the order's payment method
order.payment_method_key Get the order's payment method key
order.status Get the order's status
order.status_key Get the order's status key
order.cost Get the order's cost
order.masked_card_numbers Get the order's masked card numbers


Product

description Base variables available to any product objects (e.g, bundles, courses)

locator description
page.has_seo_title Does the product have an seo title set? True or false
page.has_seo_description Does the product have an seo description set? True or false
page.seo_title Get the SEO Title
page.seo_description Get the SEO Description
page.has_keywords Does the product have keywords set? True or false
page.keywords Get the product's keywords
page.related_products Get the product's related products
page.has_related_products Does the product have related products? True or false
page.related_products_label Get the related product's label
page.has_related_products_label Does the product have a related products label? True or false
page.has_landing_page_code Does the product have custom landing page code? True or false
page.landing_page_code Get the custom landing page code


Product Relation

description These variables allow you to access information about the other courses that are related to the courses in a bundle

locator description
bundle.related_products.name Get the name of the related product
bundle.related_products.button_text_with_price Get button text that includes the price
bundle.related_products.button_text_without_price Get button text that doesn't include the price
bundle.related_products.price Get the price
bundle.related_products.display_price Get the display price
bundle.related_products.product_name Get the product's name
bundle.related_products.card_image_url Get the product card's image url
bundle.related_products.add_to_cart_url Get the product's add to cart url
bundle.related_products.landing_page_url Get the product's landing page url
bundle.related_products.free_enrollment_url Get the free enrollment url



Custom Profile Field

description These variables allow you to access information about extra user fields (if any have been defined)

locator description
label Get the label of the custom profile field (ie: "Phone Number")
value Get the value provided by the user for the custom profile field (ie: 604-909-9090)
field_type Get the type of the custom profile field - Can be either 'text' or 'country'
is_required Get a true or false value for whether the custom profile field is required




Helpful Hints

Need to use an include with one or more variables? Just pass your variables to the partial as key-value pairs. For example:

{% include 'my_include', variable1: firstVariable, variable2: secondVariable %}

Within the 'my_include' include, both variable1 and variable2 will be available as firstVariable and secondVariable




Liquid Filters

These filters can be used to modify the data you have access to in useful ways. In addition to the filters found at https://github.com/Shopify/liquid/wiki/Liquid-for-Designers#advanced-output-filters, you have access to the following filters:


filter description
theme_asset_url
Returns the URL for a specific theme asset file name.
Ex: {{ 'my_cool_picture.png' | theme_asset_url }}

translate

Will return the translated version of the key passed in for the selected language. This only works when the key has already been set up by Thinkific as available for translation.
Ex: {{ 'liquid.views.my_account_page.error.one' | translate }}



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.