I have a content type Artist and a content type Songs. Each artist has a number of songs. I want to be able when I add a new song to assign it to the artist that it belongs and then have a view of the songs from a specific artist. I don't want to do a seperate term in taxonomy for every artist I add. Can this be automatically? ex. When I add an artist, and then I add a song I want to be able to assign this new song to the new artist without me having to manually add a new taxonomy term for the artist and then assign this song to this taxonomy term...

I want my paths to look like this. ex: artist/songallery ----> artist/songname

Hope I made myself clear, thank you in advance.

  • drupal.org/project/references ?
    – Codium
    Oct 11, 2012 at 9:45
  • References wont provide the path structure that I want. Also with references I have to create a separate view for every artist I create in order to group his songs.
    – Stathis G.
    Oct 11, 2012 at 9:51

2 Answers 2


You have content types a)Songs b)Artist

Create a node reference field with artist, in Songs content type. So when you add a new song you can you can select the artist belongs to that. I hope no need of taxonomy.

You can create two page displays in view by selecting necessary fields and give the appropriate path as you wish.

Hope this may help you!

  • OK but in the views what I actually need is a dynamic display of songs grouped by an artist, so when I click an artist I get a group of songs assigned to this artist. But can I do this with one view and how or I have to create separate view for each artist ?
    – Stathis G.
    Oct 11, 2012 at 10:02
  • I hope you can achieve this with views argument and node reference nid. Create a view to display list of songs, and another one with artist. Link the artist name field to songs view page display by passing nid. In the songs view use it as argument Oct 11, 2012 at 10:07
  • What about book? would you suggest I try it?
    – Stathis G.
    Oct 11, 2012 at 10:19
  • Do you mean drupal's book module , From documentation "A book is a set of pages tied together in a hierarchical sequence, perhaps with chapters, sections, subsections, and so on. You can use books for manuals, site resource guides, Frequently Asked Questions (FAQs), or whatever you'd like." I think it is not suit your current needs well. Oct 11, 2012 at 10:27

Use hook_node_insert to create taxonomy term based on Artist node title. This can help too: http://steindom.com/articles/creating-vocabularies-and-taxonomy-terms-programmatically-drupal-7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.