Page 1 of 1

Set & List Custom Data Fields for Tournaments & Ring Games

Posted: Sun Feb 10, 2019 7:50 am
by ddd
We have some special conditions for our tournaments (such as "be a member for X days to register") that we'd like for users to be able to see and sort by in the Tournaments list.

A nice feature would be the ability to set custom fields when creating a game using the API or "New Tournament" window in the admin GUI, and then having the ability to show these fields in the games table.

For example:
Configured Fields

Code: Select all

Array [
Tournament ID : My Tournament
Game : NL Holdem
... (all required values) ...
Custom : Array [
        Required Country : GB
        Required Team : Blue
        Organizer : Parliament
    ] 
]
Displayed Fields to User (Sortable):

Code: Select all

Show fields:
Tournament ID
Game
Required Country
Required Team
Reg
Starts/Status
In this case, no buy-ins are shown to the user (good for sites that only do complete freerolls, as the field is redundant), and custom fields allow users to see and sort by relevant custom data (such as the specific conditions that grant a user a certain permission token).