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

Alun’s picture

bwax, 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

emnzava’s picture

Dear 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.

Alun’s picture

Thanks 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

emnzava’s picture

Ok,

i will try to play around with views to see how far i can reach then i will update you.

thanks

perke’s picture

bwax, your best bet is to add custom fields using CCK and then use Views to create players listings.

emnzava’s picture

Dear 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.

Alun’s picture

bwax,
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

emnzava’s picture

alun,
Thanks. i'll be waiting for views integration for players.

All the best,
bwax

toth_O’s picture

@ 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?

Alun’s picture

This issue also relates to this post - http://drupal.org/node/841628
Just thought I'd point it out.
Alun

Alun’s picture

Status: Active » Fixed

Hi, 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.