Objects

Inside all Kajabi themes you have access to a number of objects that connect your theme to the data from the Kajabi Admin.

Announcement

{{ announcement.id }}
{{ announcement.title }}
{{ announcement.body }}
{{ announcement.created_at }}
{{ announcement.updated_at }}

Blog Post

{{ blog_post.id }}
{{ blog_post.title }}
{{ blog_post.content }}
{{ blog_post.image_url }}
{{ blog_post.created_at }}
{{ blog_post.url}}
{{ blog_post.tags | join: ', ' }}

Category

{{ category.id }}
{{ category.title }}
{{ category.description }}
{{ category.poster_image_url }}
{{ category.created_at }}
{{ product.updated_at }}
{{ category.subcategories }}
{{ category.product }}
{{ category.children? }}
{{ category.nested? }}

Comment

{{ comment.id }}
{{ comment.author }}
{{ comment.body }}

Completion

{{ completion.completed }}
{{ completion.total }}
{{ completion.percent}}

Download

{{ download.id }}
{{ download.display_name }}
{{ download.url }}
{{ download.extension }}

Form

{{ form.id }}
{{ form.title }}
{% assign f = current_site.find_form[settings.form] %}
{% form f %}
{% for field in f.fields %}
{{ field | form_input: class: "form-group", input_class: "form-control", label: true, placeholder: false }}
{% endform %}

Offer

{{ offer.id }}
{{ offer.image_url }}
{{ offer.description }}
{{ offer.title }}
{{ offer.thank_you_body }}

Page

{{ page.id }}
{{ page.title }}
{{ page.content }}

Paginate

{{ paginate.collection }}
{{ paginate.current_page }}
{{ paginate.current_offset }}
{{ paginate.items }}
{{ paginate.page_size }}
{{ paginate.pages }}
{{ paginate.parts }}
{{ paginate.previous }}
{{ paginate.next }}

Post

{{ post.id }}
{{ post.title }}
{{ post.url }}
{{ post.poster_image_url }}"
{{ post.body }}
{{ post.product }}
{{ post.category }}
{{ post.comments }}
{{ post.comments_mode_visible? }}
{{ post.comments_mode_hidden? }}
{{ post.comments_mode_locked? }}

Product

{{ product.id }}
{{ product.title }}
{{ product.url }}
{{ product.description }}
{{ product.thumbnail_url }}
{{ product.created_at }}
{{ product.updated_at }}
{{ product.categories_url }}
{{ product.completion }}
{{ product.categories }}
{{ product.announcements }}

Current Site

{{ current_site.id }}
{{ current_site.title }}
{{ current_site.url }}
{{ current_site.products }}
{{ current_site.login_url }}
{{ current_site.logout_url }}
{{ current_site.library_url }}
{{ current_site.google_analytics_script }}

Video

{{ post.video | wistia_video: controls_visible_on_load: false, autoplay: true }}

or

{% assign v = current_site.find_video[section.settings.video] %}
{% assign v-Image = section.settings.image | image_picker_url: 'video.png' %}
{% assign v-Auto = section.settings.autoplay %}
{% assign v-Color = section.settings.video_color %}
{{ v | wistia_video: player_color: v-Color, auto_play: v-Auto, still_url: v-Image, playerPreference: "html5" }}