API reference

Your account

What a theme can show

Every value and block your theme's templates can use, view by view.

This is developer work.

The Customize studio changes the colors, images and wording on every screen people see, against a live preview and with nothing to install. Start there.

Each file in your theme's views/ folder can print a fixed set of values, called drops, and include the blocks listed for it. To write the files, see Edit the templates behind your pages or Your theme on your own machine.

Printing values

  • Use only the names on this page. Any other name is an error, and an error shows people the built-in page instead of yours.
  • Printing an empty value is an error too. Guard anything that can be empty with <figh-if test="event.venue">, or print it with event.venue | default: ''.
  • Money comes in pairs. total is the amount written out in the page's language, and total_cents is the same amount as a whole number in the currency's smallest unit. Print total. Figh has no arithmetic.
  • Dates and times are already written out in the page's language, on the event's clock. event.ends_at and ticket.checked_in_at are the two exceptions, and they're Unix timestamps.
  • {{ }} escapes every value it prints. Quote your attributes, and pass data to a script in a quoted data-* attribute.
  • Receipts, pay buttons and file downloads come as blocks, listed under each view.

On every view

DropWhat it holds
localethe page's language code, like en or fr
account.nameyour account's name
account.slugyour account's short name
account.url/, your home page

Two blocks work on every view. <figh-block name="lang_switch"/> is the language switcher, and <figh-block name="currency_switch"/> is the currency switcher. Each is empty when there's nothing to switch between.

Your layout, layout/layout.figh, has these too, and one more. view is the name of the view it wraps, like event. A file in views/ can't use view.

home view

The file is views/home.figh.

DropWhat it holds
seriesone row for each listed series that has events to show
eventsyour events that aren't on a series row

Each entry in series:

DropWhat it holds
name, slug, introas you set them
urlthe series page's address
counthow many events the series page lists, upcoming and past

Each entry in events:

DropWhat it holds
namethe event's name in the page's language
slug, venue, description, currencyas you set them
urlthe event page's address. Always link with this. For an event in a series, the address is different from slug
starts_atthe date line, with the time zone named by city, like "Tue 6 Jul 2027, 6:00 pm, Dublin time"
ticketsthe tickets on sale, each with name, price, price_cents, price_hidden and currency

A free ticket with Leave “Free” off this ticket on the event page and widgets switched on has price_hidden set to true and an empty price.

event view

The file is views/event.figh.

DropWhat it holds
event.name, event.venuein the page's language
event.slug, event.currencyas you set them
event.descriptionthe description as plain text, for a card or a <meta> tag. For the formatted description, use the event.description block
event.venue_addressthe venue's address, empty when there's none
event.venue_lat, event.venue_lngthe map pin, like "53.343792", empty when there's no pin
event.venue_map_links.google, event.venue_map_links.apple, event.venue_map_links.osmlinks that open the venue in a maps app, empty when the venue has no location. osm also needs a map pin, so check each one
event.calendar_links.file, event.calendar_links.google, event.calendar_links.outlookadd to calendar links, empty unless Let people add the event to their calendar from your event page is on and the page shows a date
event.urlthe event page's address
event.starts_atthe date line, with the time zone named by city
event.ends_atwhen the event ends, as a Unix timestamp, or 0 when there's no end
event.fieldsthe details you've added to the event, by their short name. See Fields a theme asks for, below
ticketsthe tickets on sale with no times to choose from, empty while sales are closed
schedulethe tickets on sale with times to choose from, in groups, with their options
register_urlthe address the purchase form sends to. To sell tickets, use the event.purchase_form block

Each ticket in tickets has name, description, price, price_cents, currency, sold_out, url and price_hidden. The description is plain text. A bullet is written as "• ", and a link is written as its words with its address in brackets.

Each entry in schedule:

DropWhat it holds
namethe group's name. A group with no name uses when it runs, like "Fri 5 Mar, 10:00–11:30"
sessionsthe options on sale in the group, earliest first
zonethe time zone of the options' times, named by city, like "Dublin time"
ticketsthe tickets sold with those options, with the same values as tickets above

Each option in sessions has:

DropWhat it holds
name, venuein the page's language
descriptionthe option's description, empty when there's none
starts_atthe date and the time it begins, like "Fri 7 Aug 2026, 10:00"
ends_atthe time it ends, like "10:30"
datethe date, like "Fri 7 Aug 2026", for grouping options by day
timeboth times, like "10:00–10:30"
sold_outtrue when the option is full
discount_percentthe whole percent off the ticket's price for choosing this option. It's negative when the option costs more
price_bpswhat the option charges as a share of the ticket's price, in hundredths of a percent. 10000 is the ticket's own price

A ticket with times to choose from is only in schedule. To show every ticket, loop through both tickets and schedule.

BlockWhat it shows
event.purchase_formthe form people buy tickets with, including quantities, options, add-ons, the discount code box, the summary and the button. If you leave it out, you see a warning when you save
event.descriptionthe description, formatted as on the built-in page
event.notesthe pieces you've placed on the page in Content, each in an <event-notes> element with its name in data-piece. It's empty when you haven't placed any

content view

The file is views/content.figh. It's used for a page written in Content that has its own address.

DropWhat it holds
content.titlethe page's title. The built-in page doesn't show it
content.addressthe last part of the page's address, like getting-here
content.namethe piece's name, the same one data-piece uses
content.eventthe event the page belongs to, with the same values as order.event. A page that belongs to your account has no content.event

The view has to include <figh-block name="content.body"/>, which is the page's text. Without it, people see the built-in page.

order view

The file is views/order.figh. It's used for the buyer's order page.

DropWhat it holds
order.refthe order's reference
order.display_refthe reference as the built-in page shows it
order.statethe order's status, like paid or pending
order.join_url, order.join_notehow to join an online event, empty until the order is paid
order.namethe buyer's name, which can be empty
order.emailthe buyer's email address with most of the name hidden, like j***@example.com
order.total, order.total_cents, order.currencythe order's total now, after anything removed or refunded
order.amount, order.amount_centswhat the buyer paid at checkout
order.type_summary"3 × Adult" when every ticket is the same type, otherwise empty
order.qr_urlthe order's QR code image, empty when the event doesn't offer one
order.apple_pass_urlthe order's Apple Wallet pass, empty when there isn't one
order.google_pass_urlthe order's Google Wallet pass, empty when there isn't one. It can be empty when the Apple pass isn't, so check each one
order.invoice_details_urlthe buyer's page for changing who the invoice is made out to, empty when they can't use it
order.invoice_details_untilthe last day they can use that page, like "12 Nov 2026"
order.ticketsthe tickets on the order
order.answersthe buyer's answers to your questions
order.itemseverything else on the order, like add-ons and donations
order.item_answersthe buyer's answers about each item, with the item's heading
order.discountsthe discount codes used on the order
order.flashthe one-time messages the buyer sees after changing something
order.eventthe event, with name, slug, url, starts_at, venue, venue_address, venue_lat, venue_lng, description and currency

Each entry in order.tickets:

DropWhat it holds
ref, type_namethe ticket's reference and type
holder_namethe attendee's name, empty when nobody is named yet or the ticket collects no names
anonymoustrue when the ticket type collects no attendee details
statevalid or void
urlthe ticket's own page
numberits place in the order, starting at 1
sessionsthe time chosen, with its time zone, empty when there's none

Each item in order.items has name, quantity, kind, kind_label (the kind in the buyer's language), total, total_cents, currency, state and on_ticket. An item the buyer can remove also has remove_url and remove_label.

Each discount in order.discounts has code, amount, amount_cents and currency. Each entry in order.item_answers has a label and a list of answers.

order.flash has four values: details_saved, line_removed, add_on_added and invoice_updated. Each one is false or empty unless the buyer has just done that.

BlockWhat it shows
order.actionsthe receipt, invoice and calendar links
order.detailsthe buyer's email address and answers, with the links to change them
order.managethe changes the buyer can make to the order, including canceling it
order.refund_receiptthe refund receipt link, once anything is refunded
order.credit_noteslinks to the order's credit notes

The view has to include <figh-block name="order.actions"/>. Without it, people see the built-in page. order.actions, order.details and order.manage are empty until the order is paid.

ticket view

The file is views/ticket.figh. It's used for an attendee's ticket page.

DropWhat it holds
ticket.ref, ticket.type_namethe ticket's reference and type
ticket.holder_namethe attendee's name, empty when nobody is named yet
ticket.anonymoustrue when the ticket type collects no attendee details
ticket.join_url, ticket.join_notehow to join an online event, empty unless How to join online is on and the ticket is valid
ticket.statevalid or void
ticket.qr_enabledtrue when the ticket type has a QR code
ticket.qr_urlthe QR code image, empty when qr_enabled is false
ticket.code_readytrue once the QR code can be shown. Show it only when both this and ticket.qr_url are set
ticket.apple_pass_urlthe ticket's Apple Wallet pass, empty when there isn't one
ticket.google_pass_urlthe ticket's Google Wallet pass, empty when there isn't one
ticket.checked_in_atwhen the attendee checked in, as a Unix timestamp, or 0 before they check in
ticket.schedulethe attendee's times, each with name, option, starts_at and ends_at
ticket.answersthe attendee's answers to your questions
ticket.eventthe event, with the same values as order.event

The view has to include <figh-block name="ticket.actions"/>, which shows the calendar, print and wallet links. Without it, people see the built-in page. ticket.actions is empty unless the ticket is valid.

When a ticket isn't anonymous and ticket.holder_name is empty, nobody has been named on it yet. The built-in page says a name is still needed and has a button to add one. Your theme can say a name is needed, but it can't show that button.

Answers

Each answer in order.answers and ticket.answers has a label, a value written as the built-in page shows it, and files, the names of any uploaded files. Answers to questions only your team can see aren't included.

checkout view

The file is views/checkout.figh. It's used for the page where a buyer pays.

DropWhat it holds
checkout.refthe order's reference
checkout.buyer_namethe buyer's name, which can be empty
checkout.noticea warning, like a declined payment, empty when there isn't one
checkout.itemswhat's being bought, each with name, quantity and line_total
checkout.total, checkout.total_cents, checkout.currencywhat the buyer is being asked to pay
checkout.eventthe event, with the same values as order.event

The view has to include <figh-block name="checkout.form"/>, which shows the pay button. Without it, people see the built-in page.

Fields a theme asks for

A view can ask for details about the event, like a photo credit, in a block at the top of the file between two +++ lines. Each detail has a key, a label and a kind. You accept them under Custom themes. Until you do, event.fields.<key> is empty.

Still stuck?

You can let someone at Tito sign in to your account for a set time, and see every visit they made.

Let Tito support in →