This page is intended to give some guidance on the use of leaguesite_bracket - the sub module of leaguesite that allows people to integrate the services of the two modules.

It will be updated as the module is completed, and brought to work more tightly with Bracket. At the moment, the module is in early development, so there will be bugs and incomplete actions. These book pages are being set up to ensure people follow the best practice when using the two modules together and therefore any problems are kept to a minimum.

Headings below relate to various stages of the module and can be followed as you go through creating a bracket

Create Bracket
In the first step of setting up your bracket, you should use the bracket form at Create Content -> Bracket.
On this form, Leaguesite will make its sports and seasons available as autocomplete textboxes. When filling out the form, you should use a sport and season set up with Leaguesite.

Upon submission of the bracket, Leaguesite will go through all the matches and create unpublished nodes for each game. You will be able to see these in Content Management > Content.

Routing
Once you have created your bracket, you should go to the routing form. Though this form is not used widely in Bracket, you can use it to enter your match dates. All textfields use date_popup to allow you to enter the times and dates of all the games in the bracket. Upon submission, the match nodes will be updated with the correct time.

Seeding
FInally, to finish setting up the bracket, you should add the competitors for the matches on the seeding page.
Again, all the textfields have been given autocomplete functionality so that leaguesite_teams can be easily entered.
Once you have entered all the teams and clicked save, the matches from the first round will be updated with team names and published.
You can now use these matches and enter results in them.

Entering Results
Once you have all the matches set up, you should not have to use the Bracket page. All results can be entered using Leaguesite Match Admin or by editing the match node. When you enter the result, the score is passed back to the Bracket and it is updated. Once the first round has been completed and the next round competitors become clear, the nodes representing these matches will be filled in with the teams and then published.
As you go through, this should also update the bracket so both modules are kept in synchronisation.