Page Variables

Pages have access to variables that are inserted into content dynamically. These variables are configured through the CTFd configuration page and then inserted into the HTML when it’s loaded.

Variables can be accessed as {{ variable }}.

For example if your variable is ctf_name, it can be inserted into Page content as {{ ctf_name }} as shown below.

Available Variables

ctf_name - The event name

ctf_description - The event description

ctf_start - The event start time as an ISO8601 timestamp (e.g. 2021-12-21T01:40:00Z)

ctf_end - The event end time as an ISO8601 timestamp (e.g. 2021-12-21T01:40:00Z)

ctf_freeze - The event freeze time as an ISO8601 timestamp (e.g. 2021-12-21T01:40:00Z)


Last modified August 7, 2021