By youkho on
Was wondering how to do an online league management where you can arrange fixtures add results and rank teams is that possible with cck and views calc?
Was wondering how to do an online league management where you can arrange fixtures add results and rank teams is that possible with cck and views calc?
Comments
Yes ...
It's all possible with CCK and Views! I'd suggest reading up on the docs here at drupal.org, and/or grabbing one of the new outstanding books on Drupal like "Using Drupal" - it has some great tutorials on CCK and Views.
-backdrifting
Been on the documentation
Been on the documentation and where's i'm stuck is how to do the standings something like
team a vs team b - result : 10 - 12
team a vs team c - result : 12 - 09
etc...
and then make a standing table with the sum of the scores for each team and then rank.
btw would to buy the book but in Morocco there's no way i can get it :(
_
I would probably create a content type for 'team' which has fields for whatever info you want to record for the teams (coach, home field, logo, whatever. Then I would create a content type for 'Game' that has fields for whatever you want to record for the games (date, field, officials, whatever). Be sure to include a nodereference field for team 1 and team 2 and a score field for team 1 and team 2. You can then use the views module to make all kinds of listings (by team, by score, etc.). I'm not sure how to handle the 'winner' aspect-- even though it's implied by which one of the score fields is higher than the other, you may still need to add a computed field that looks at the score fields and stores the node id of the winning team. You'll have to play around with it a little.
EDIT: you may also want to consider the OG module to have a group for each team.
Hope that helps...
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thanks a lot WorldFallz that
Thanks a lot WorldFallz that really puts me into the straight path i'll try your solution and the suggestion of adding OG for the teams is interesting thanks a lot my friend :)
_
good luck ;-)
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Good Drupal Books
As suggested, there are several good Drupal books on the market. See the link below:
They can be purchased at Amazon, http://www.amazon.com/s?ie=UTF8&keywords=drupal&index=books
The books are Using Drupal by Angela Byron, Addison Berry, Nathan Haug, and Jeff Eaton and Drupal for Education and E-Learning by Bill Fitzgerald
I thank you for the
I thank you for the suggestion but the problem is that in Morocco you cannot pay on Internet (maybe we will in 2010) and for sending money it's another problem so i'm out of choices if not reading documentations and getting help from the community thanks anyway i'll continue searching ^^
I would suggest using
I would suggest using organic groups as well.