1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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)

Discussion in 'Sportsbook Closed Suggestions' started by Bob, Aug 20, 2020.

  1. Bob

    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).
     
    Regs and mouth like this.
  2. Bob

    Bob Developer Staff Member

    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
     
    EasyEazy and Regs like this.
  3. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Sportsbook Pickem

    Great addition and thank you to whoever donated back.
     
    Bob likes this.
  4. mouth

    mouth Member CAS Premium RMS Premium SC Premium UBS Premium Sportsbook

    [​IMG]
     
    McAtze, EasyEazy and Bob like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.