Currently we have used LeagueSite to successful allow an Indoor Soccer Arena to setup and track league play. https://www.ultimateindoorsports.com/league/schedule What I would like to do is allow a option where you could choose your team from a drop-down list and show just that teams schedule of play.

Has anyone done this?

Ray

Comments

Alun’s picture

You need to look at Views filter which filters matches by team ID. Expose that filter and you should be OK. The problem I think is getting the exposed filter to be a dropdown box not a text field - how far have you got on exposing the filter so far?
Al

RayAdams23’s picture

Alun,
No drop-down is half the problem - then you have to know the team_id (which obviously a number).

Ray

RayAdams23’s picture

StatusFileSize
new10.87 KB
new28.92 KB

Alun here are screen shots of the result. The Views setup and then the selection from a User Perspective.

Ray

Alun’s picture

You should filter by team name, not ID. Is that possible? Then you can create a plugin that supplies the list of teams when the page loads, rather than just have a textbox.
Al

RayAdams23’s picture

StatusFileSize
new16.43 KB

Alun - I only get the option for putting in the team_id through the Filter (see image).

Ray

ParisLiakos’s picture

Alun i want to do something similar but for schedule per matchday.
i have the filter exposed and works ok but i want to have dropdown instead of textfield.
do you have any ideas how can i manage this?