Almost everyone is interested in various sports, and many of them have knockout-style game modes. To display information as a tournament bracket in Drupal, we can use the Bracket module.
After installing this module, the content type “Bracket” will appear on your site. On the settings page at admin/config/content/bracket
, I recommend immediately enabling the property Allow Image Uploads so images can be uploaded directly when creating a bracket. You can also select the display type: dynamically generated HTML or an image. Caching can be enabled for images.
Here is an example of a playoff bracket from the 2010 Football World Cup:
There are several types of brackets:
-
Single Elimination is the most functional bracket, subdivided into types:
- Championship Bracket - participants appear only on the left side.
- Championship Left-Right Bracket - participants appear on both sides.
- 2 Round Playoff - winners are determined after two rounds.
- Single Round Playoff - only one round is played.
-
Double Elimination - one winning team advances to the final along with one team from those eliminated each round. This type can be Championship Bracket for 4, 8, 16, 32, or 64 participants.
-
Final Four - the simplest bracket type, involving eight teams with four winners advancing.
-
Modified Double Elimination - a bracket with one winner, where losing teams compete each round for third and fourth places. It can be Championship Bracket for 4, 8, 16, 32, or 64 participants.
To fill the bracket with participants after creating it, switch to edit mode and select the “Seeding” tab at node/*/edit/seed
.
At node/*/edit/route
, you can configure routes participants will follow and their matchups throughout the tournament.
After adding participants, results of each round can be edited at node/*/edit/round
. All forms are intuitive and easy to complete.
The module has its own API, which I recommend reviewing if you plan to use the module actively on your site. The only missing functionality is integration with users and nodes. The development team plans to implement this feature in the Bracket module next.