• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Custom Fields for Events (Event fields)

Bob

Developer
Staff member
This was privately funded by an anonymous Sportsbook license holder and donated back to the Sportsbook community to be included as a part of Core Sportsbook.

Custom Fields is a Core XF system that any content type can implement, so how custom fields work is standardized by using the Core XF system. Event Fields have all the same options as Custom User Fields, Custom Resource Fields, Custom Media Fields, Custom Thread Fields etc etc etc.

There is a new menu item titled "Event fields".

Selection_240.png


The main Event fields page will list all the custom event fields that you've added to the system. They are grouped by display location and ordered by display order within the group.

There is an "Add field" button that takes you to the Add field input form.

Selection_241.png


The Add field input form is a standard input, so you will see that most of the inputs are the same as Thread Fields, User Fields, Resource Fields, Media Fields etc...

The differences are settings like "Display location" as those are content type dependent.

Selection_242.png
Selection_243.png
Selection_244.png


In this shot, you can see a custom event field being displayed in the HEADER display location.

Selection_245.png


In this shot, you can see a custom event field being displayed in the FOOTER display location.

Selection_246.png


In this shot, you can see a custom event field being displayed in the "above event details" display location (Attendance) and the "below event details" display location (Misc details).

Selection_247.png

In this shot, I've edit the "misc details" custom field and set the display location to "Own tab".

Selection_248.png

Keen eyes will probably notice a display location that I've not explained and that is "Self placement". This if for advanced customization purposes. As the title implies, these fields are self placed via editing templates and adding individual custom field template syntax to display the field in a precise location that is not on the display locations listing. They can also be used for determining whether something displays or not (eg, on/off switches). ADVANCED = on your own (which requires a bit of knowledge).
 
Upvote 2
This suggestion has been implemented. Votes are no longer accepted.
Ah.. forgot one thing!

There is per field option titled "Display field on list". This lets you display certain custom fields data on listing pages.

Example, here you can see that I am displaying the custom event fields for "Score" and "Attendance" (they only display if filled in). Its a popular extension that I've done for most of my CMS type addons (AMS, Showcase, etc).

Selection_249.png
 
Great addition and thank you to whoever donated back.
 
  • Like
Reactions: Bob
This was privately funded by an anonymous Sportsbook license holder and donated back to the Sportsbook community to be included as a part of Core Sportsbook.
Copy-of-1.-Follow-your-childs-lead-15-810x385.png
 
Back
Top