Bulding relationship between tables
-
Hi Tobias
I have the following question. I have to buld a sportswebsite who has 36 Teams on it. Each Team will play in theire respective leagues. For this I do have the Plugin Sportspress that does manage the games, the outcome of the games and the standings. So far so good.
But know it gets tricky. Each team has at least 23 Players. Those 23 PLayers got statistics onn each game played. Now I have the statistic available, but I can not output it game by game as sportspress does not (yet) support that. So my work araound is, to use Tablepress for the game to game stats.
So I did install the plugin, uploded the players and theirs stats. But now I did run in to my problem. I dont want to manually update each player game by game. I would like to have the possibility jus to link the game stats to the players stats and that those statistics show on the Players tables.
An example. Player A plays for team A and score 1 Goal and get 2 Assists. Player B plays for team B and has 2 Gaols and one ssists.
So I have bothe players in the game sheet and when I import the data they will get importet to the team and theirs season stats. Thne the data will be calculataed and presented on the front end.
But thats not all I want. The data should update the games stats of the player of tat special game. and the stats should be updatet only onces and not for all players manually.
So, is it possible to link the Player to the Team table stats and vice versa so I do only have to do it once? And if so, can I pull the results dynamicaly because I use Elementor? SO like player A has his own profile get automatcly set up as a template, that I then can reuse it to all the other players to and it would create theire own tablepress tables?
Kind of a long question, I know. But maybe its just a hint or so I do need. BTW, I
m not a coder by all means. I
m just a simple deigner that has some baackground knowledge of HTML and CSS.Cheers
Urs ??
- The topic ‘Bulding relationship between tables’ is closed to new replies.