Sport Types & Profiles

What a sport profile is

A sport profile is a versioned template that defines how a sport behaves: its positions, its event types (goals, cards, and so on) and its statistics. JoomLeague ships with 15 bundled profiles, including football, futsal, basketball, volleyball, ice hockey, rugby, tennis, floorball, darts, chess, bowling, esports, mma-boxing, motorsport and running-race.

Bundled profiles are immutable templates — they only turn into live, editable records in your installation once you select one while creating a sport type.

Sport profiles screen

The Sport Profiles admin screen lists every bundled profile together with its current version and the number of project-rule fields it defines. A Synchronise toolbar action re-reads the bundled profile files and updates the stored versions in your database — use it after upgrading the component if new or updated profiles were added.

Creating a sport type

A sport type is your installation's local, named instance of a sport (for example "Football"), built from one profile version. When creating a sport type you set:

  • name and code (required) — the code is filtered to a machine-safe format.
  • profile_version_id (required) — which bundled profile version to build it from. Only published profiles with an active version are offered.

Three switches control what gets created at creation time only (they're removed from the form once the sport type already exists):

  • create_positions — create the profile's position catalog.
  • create_event_types — create the profile's event type catalog.
  • create_statistics — create the profile's statistics catalog. All three default to yes.

After creation

Once a sport type exists, its positions, event types and statistics are ordinary editable records in your installation — you can add to or adjust them like any other reference data. You can still change which profile version a sport type points to later, but only if no project is already using that sport type (the sport type can't be re-pointed to a different profile once a project depends on it, and a sport type in use by any project can't be deleted either).