Hi,
I am trying to play around and create a page to list team players for specific season and when i click their name it will take me to their profile page. Is there any workaround to this?
Any idea will be greatly appreciated.
Regards
Hi,
I am trying to play around and create a page to list team players for specific season and when i click their name it will take me to their profile page. Is there any workaround to this?
Any idea will be greatly appreciated.
Regards
Comments
Comment #1
Alun commentedbwax, as it stands, players are nodes. I haven't looked into adding players as users yet, is that what you mean, adding users to a team?
If you want to create any kind of display, you should install Views and use that, as it is the best way to display information. Some of the players module needs to be integrated into Views though, which I will add soon.
Alun
Comment #2
emnzava commentedDear Alun,
To give you clear picture of what am trying to create visit the following soccer site made of drupal.
http://www.mlssoccer.com/players
I have views installed and when i was looking at the leaguesite nodes at the views i couldn't find a node which gives position of a player, year joined etc.
My idea is to create a page(from view) for current players(based on season) playing at a specific team and also provide a way (or another page) for previous players. In short i need to give users a way to sort players per season(sort of select list)
Is there any possibility for that.
Comment #3
Alun commentedThanks for the clarification bwax, that makes it easier to understand.
As I mentioned, some of the information for players needs to be added to Views. This will help you with most of your issues.
I could add a field to allow people to mark players as 'active' or 'retired' which would make things easier when filtering, and give you the option of looking at previous players. I'm doing a similar thing with seasons, which will make the admin side of things easier, as inactive players and seasons will not be included in admin interfaces.
Sound good?
I'll bear these points in mind when next working on the module.
Thanks
Alun
Comment #4
emnzava commentedOk,
i will try to play around with views to see how far i can reach then i will update you.
thanks
Comment #5
perkebwax, your best bet is to add custom fields using CCK and then use Views to create players listings.
Comment #6
emnzava commentedDear Perke and Alun.
I have done that already. I've added the following fields to sports player content type. Jersey Number, Nationality,Date of Birth and Country. Then create page views to display players list. It works OK but it display all players added to the content type sport player.
So the biggest challenge am facing is how to filter result only to display players for specific season.
Do you know any workaround for this. I want to filter per season and team. Also it will be better if i will give user option to choose what to view. Just like in the following page user can select players to see.
http://www.mlssoccer.com/players/los-angeles-galaxy
So another question how can i use select combo box to choose season and contents load automatically based on selected option? (Put mouse over current roaster and choose any roaster. players will load automatically).
This module is great. I will share with you once i manage to set things up correctly.
regards.
Comment #7
Alun commentedbwax,
Once I add Views integration for players, you will be able to sort by a specific season, and teams. I'll work on it very soon.
Alun
Comment #8
emnzava commentedalun,
Thanks. i'll be waiting for views integration for players.
All the best,
bwax
Comment #9
toth_O commented@ bwax
In the site i try to make with leaguesite, teams are groups (with "organics groups" module), so each player is a regular user member of the group/team with a profile .
I dont know if it's a good aproach of it for what you trying to do?
Comment #10
Alun commentedThis issue also relates to this post - http://drupal.org/node/841628
Just thought I'd point it out.
Alun
Comment #11
Alun commentedHi, I have added views integration to the module, hopefully it displays as you need.
Please have a play around with it and get back to me with any issues.
in the meantime, I'll close this issue as it should be sorted with the integration.
Please reopen if needed
Thanks
Alun