Skip to main content

Liquid Object Reference Index

NationBuilder uses the open source liquid template language to access objects and variables. Liquid allows you complete design freedom while maintaining the integrity of our servers. There are two basic types of markup in liquid: Output and Tags. Dive into the liquid quickstart and liquid template examples to learn how to powerfully use liquid with NationBuilder.

For all other theming documentation, consult how to create a custom website theme.


Objects Description
request Information for a session currently accessing the page
settings Organization settings, nation stats, and election and candidate variables
flash Notification parameters for the _flash templates
site Site settings and defaults
page Common properties inherited by every page type
page.activity_stream Variables for activity stream pages
page.basic Variables for basic pages
page.blog Variables for blog pages
page.blog_post Variables for blog posts
page.calendar Variables for calendar pages
page.directory Variables for directory pages
page.donation Variables for donation pages
page.endorsement Variables for endorsement pages
page.event Variables for event pages
page.faq Variables for FAQ pages
page.feedback Variables for feedback pages
page.invoice Variables for invoice pages
page.leaderboard Variables for leaderboard pages
page.moneybomb Variables for moneybomb pages
page.petition Variables for petition pages
page.press_release Variables for press release pages
page.question Variables for question pages
page.rule Variables for rule pages
page.signup Variables for signup pages
page.suggestion Variables for suggestion pages
page.suggestion_box Variables for suggestion box pages
page.survey Variables for survey pages
page.volunteer_signup Variables for volunteer signup pages
page.vote_pledge Variables for vote pledge pages
page.voter_registration Variables for voter registration pages
account Variables for user accounts
activation Variables for account activation forms
activity Variables for actions taken on the site
address Variables for addresses
broadcaster Variables for site broadcasters
capital Variables for political capital
comment Variables for comments
consent_form
election Variables for elections
donation Variables for donations
feature Variables for featured content
flag Variables for content flags
endorsement Variables for endorsements
event_host Variables for event hosts
event_rsvp Variables for event RSVPs
event_ticket_level Variables for event ticket levels
leaderboard Variables for leaderboards
leaderboard_entry Variables for leaderboard entries
mailing Variables for mailings
membership Variables for memberships
merchant_account Variables for merchant accounts
order Variables for orders
order_item Variables for the items of an order
password Variables for password forms
password_reset Variables for password resets
page_attachments Variables for page attachments
page_follower Variables for page followers
page_tag Variables for page tags
page_tagging Variables for page taggings
page_signup_tagging Variables for user-submitted taggings
petition_signature Variables for petition signatures
pledge_variables Variables for pledges
profile Liquid variable object reference for Public Profile pages
recurring_donation Variables for recurring donations
rule Variables for site rules
rule_violation Variables for rule violations
signup Variables for site signups
survey_question Variables for survey questions
survey_question_possible_response Variables for survey question possible responses
survey_question_response Variables for survey question responses
tweet Variables for tweets
twilio_phone Variables for Twilio phone
unsubscribe Variables for unsubscribe forms
user_session Variables for user session forms
volunteer Variables for volunteers
volunteer_type Variables for volunteer types
vote_pledge Variables for vote pledges