Page 1 of 1
Hide League From Website?
Posted: Sun Jul 07, 2013 11:45 am
by RockRocks787
Is there a way to hide one league from the website? I allow users who are logged in to choose the league they want to look at, but I would like to create a league just for coaches.
Re: Hide League From Website?
Posted: Sun Jul 07, 2013 12:03 pm
by FTMSupport
If you remove the league from the team under team manager it will not appear on the website.
Re: Hide League From Website?
Posted: Sun Jul 07, 2013 7:24 pm
by RockRocks787
I understand what you're saying, but if the team is not assigned to the league I'm trying to hide then I can't view the team's stats for that league.
Re: Hide League From Website?
Posted: Sun Jul 07, 2013 7:33 pm
by FTMSupport
That's true... just make sure when you export to the server that the team is not assigned to the league if you don't want people to select it, then assign the team to the league back on your device to be able to select it there.
A couple more options would be for the website to select a single league that you want displayed, and not allow users to choose a league at all, or you can make it so only logged in users can select a league to display. These option are available from the Settings screen on the team website when logged in as Admin (use selections in bottom right).
Re: Hide League From Website?
Posted: Sun Jul 07, 2013 7:36 pm
by RockRocks787
I appreciate the response. I'll try to figure something out.
Re: Hide League From Website?
Posted: Mon Jul 08, 2013 4:25 am
by Egghead_#8
With the limited functionality of the website / API when it comes to league selection capabilities your best most complete option is to download the data into MySQL (or other db) and then build your own page off that.
I've gotten parent requests in regards to league filtering too but the current website setup isn't capable of any robust league filtering. I just haven't had time to create the needed code to push my data in MySQL and then display that data with PHP.