Am using Hierarchical Select Node Reference ver 6.33 Drupal ver 6.17
Have three content types :
Team
Position
Player
I need to select various players at different positions in the team.
Have set up
1. a node reference from Position to Player -
Number of values - Unlimited
Content types that can be referenced - Player
2. Node reference from Team to Position -
Number of values - Unlimited
Content types that can be referenced - Position, Player
Widget type: Hierarchical Select
Node reference path: Position.Player
Hs Config is as follows
Save lineage: Save node lineage
Have Enabled the dropbox Hierarchical Select config
Force the user to choose a node from a deepest level
I already have content in Team. When I edit Team I get Only the Player
names to select from.
I have data in Position content type as well.
How can I configure to select Position and then Player?
Help would be much appreciated. Thanks.
Comments
Comment #1
vivdrupal commentedCan someone help please!
Thanks.
Comment #2
sheba commentedYour structure should be like this:
Team <-position <-player
(reverse of what you made)
But since positions are same for all teams i think that mby reference by taxonomy would be more adequate here.
Or make CCK field (list of positions) in content type Player and than reference it direct to team.
Comment #3
vivdrupal commentedThank you Sheba for answering.
But I need to select all the players of a team at one go. And at the same time assign their positions. So I think the current hierarchy should work.
My problem is that once I select a player, I do not get the list of Positions ( in a slider) to select from.
If I check 'Allow creation of new levels' then I do get the slider with "Create new position" ;but I need to get the list of positions already created in the content of content type Position. How do I get to choose the Positions for each player?
"But since positions are same for all teams i think that mby reference by taxonomy would be more adequate here" - Could you guide me in the right direction on this, haven'y used reference by taxonomy before.
"make CCK field (list of positions) in content type Player and than reference it direct to team." - Since the same player may be in different positions I think this may not be a solution.
Thanks in advance.
P.S. Solved : Refer my post http://drupal.org/node/864894 and also posting on http://drupal.org/node/626088
Comment #4
vivdrupal commented