Dear Alun,

1.) I'm facing some problems on profile creation based on the following scenario.

Imagine this. A team recruit a manager to train for 3 seasons(Contract job). Now because of one reason or the other(may be due to poor performance of the club), the manager left the club just after 6 months.

Now here comes my problem. I want to show in the profile the date he joined the club and the date he left the club keeping in mind someone else will take the place soon after he left.

How can i achieve this with leaguesite module? Currently, i can filter players and managers per season but that's it. I cant go any further than that.

2.) How can i expose player names(select list combo box) for viewers to switch from one player profile to another such that they don't have to go back to player profile main page? And in the combo box, should list current squad only based on season.

To get my point just visit the following page. Below Cesc Fabregas image there is a select combo box where by users can switch to another player. No need to go back to players main page.

http://www.arsenal.com/first-team/players/cesc-fabregas

Regards.
Bwax

Comments

timbraeckman’s picture

The first problem i think you don't need leaguesite for it. You can create your own content-type and use the date module to show when he got into the club and when he left. Why would you need Leaguesite for it?

The second problem is possible with views i'm sure but i don't know if Alun has already created the handlers for it. I know he's working hard on the players to get it ready though :) Thanks for that Alun ;)

Alun’s picture

Hi guys, sorry for the late reply..
I can answer your questions, but not necessarily solve them..

1) As DeLaPena says, this is (currently) not possible in Leaguesite. It may be possible to add a CCK field to the player-node which shows arrival and departure times, but per-season, this might not be so practical. I guess it makes sense for me to build a more detailed arrival and departure system into the module. For now its by season, but its a definite consideration for the future.
For the current moment in time, you would have to remove the player/manager from the season completely and just note in their description who they used to play for.

2) This would be a difficult one, even with the views that I am working on. What you are looking for is a combo box that is dependent on an argument passed through the URL. Not an easy thing to construct, though, dare I say it, it is possible.
Right now, an easier way to do things is to display the players in a list of links in a block. This can be done through views. A possible line of enquiry is something like this module, which gives you the option of presenting a view in a form - http://drupal.org/project/views_ff

Hope that helps. I'm going to work on the views display for players / substitutions and penalties, which I should be able to commit after the weekend. Let me know if you have any questions.
Thanks
Alun

timbraeckman’s picture

After the weekend? GREAT! Looking forward to it!

emnzava’s picture

Deal Alun and DeLaPena,
Thanks a lot for explanation. With the second question i understand that it is difficult to accomplish but i decided to ask so that apart from sharing information, i wanted to know you have come across this issue and what is the way forward to solve. I hope you know, someone can find certain problem difficult until he/she decided to share with other and only to find out that others have an easier way to solve.

with the first question, i will take your advice and update you on progress achieved.

Thanks and regards.

Alun’s picture

Hi, I'm closing this issue due to inactivity, I hope that you managed to find a way to display the players as needed.
Please reopen if needed
Thanks
Alun

Alun’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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