How do I add standard user/entry fields and custom user/entry fields to my contest pages
It is a common practice to want to add either standard fields that are captured at registration or entry upload and use in the web pages such as the entry page.
In order to do this you will need to use the Theme code editor.
Then select the page you want to edit.
Standard User Fields
You can insert standard user fields using the following tag syntax:
{$user_email} – entry user email
{$user_first_name} – entry users first name
{$user_last_name} – entry users last name
Standard Entry Fields
You can insert standard entry fields using the following tag syntax:
{$contest_entry_title} – title of the entry
{$contest_entry_description} – description of the entry
{$contest_entry_date}
{$contest_category_name}
Custom User Fields
In order to select custom entry fields you will first need to set the user_data variable to the JSON object that holds the custom user data.
To do this use the following syntax at the top of you web page you want to edit:
{$user_data = $user_data|json_decode:1}
You can then access the custom user data. In order to reference the different user data fields go to the custom user field and get the custom field ID
Then use the following syntax:
{$user_data.c_field_<field id>} where field id in this case would be {$user_data.c_field_79c9c9ec}
Custom Entry Fields
In order to reference the different entry data fields go to the custom entry field and get the custom field ID
Then use the following syntax:
{$contest_entry_data.c_field_<field id>} where field id in this case would be {$contest_entry_data.c_field_c5a762fe}