Artist & Albums On The Same Page

Events happening in the community are now at Drupal community events on www.drupal.org.
yeeloon's picture

Hi all,

I'm very new on this applying Panels to the Drupal CMS.

So, right here, I'm trying to accomplish something like http://musicbox.sonybmg.com/artists/alicia-keys or http://popsugar.com/celebrity/Jessica_Alba. I'm sure Panels can do something similar, but I just don't know how exactly to achieve it.

To achieve a simpler version, I have created two different content types: Artist and Album.

I've also created a new category called Artist which points to the Artist and Album types. I've checked it as:
Hierarchy: Single
Related Terms
Free Tagging.

Then, I goto:
http://www.example.com/node/add/artist
Title: Alicia Keys
Artist (Taxonomy): Alicia Keys
Body; (Just enter some text) Alicia Keys is a R&B singer...

http://www.example.com/node/add/album
Title: As I Am
Artist (Taxonomy): Alicia Keys
Body; (Just enter some text) This is her latest album

The next thing I'm trying to achieve is basically creating a Panel Page(s). So, I would proceed to www.example.com/admin/panels/panel-page/add to select a Two column (just to keep things simple). So here comes with problem... how can I produce a page (URL is something like: www.example.com/artist/Alicia-Keys) that on the left column displays the Artist content type and on the right column displays the related Album(s).

And, how can I do this dynamically with every new Artist or Album? Can I achieve this without any programming done? I just can't seem to find the way steps (from http://drupal.org/node/201914) to do it. And, can someone tell me if what I'm doing above is correct or wrong?

Comments

Can someone help me out

yeeloon's picture

Can someone help me out here?

Maybe I'm a bit dumb here, but the Context and Content tabs are very confusing to me...

Hey! I've got a question for

chrisroditis's picture

Hey! I've got a question for you, how do you manage the relationship between the artist and his albums? Is it done manually through perhaps cck nodereference? Or you don't store the relationship anywhere? I mean when you create a new artist and then create a new album how does drupal know who this album belongs to , so that at a later stage it can automatically populate a panel to display the artist and his albums?
ps: sorry for not responding to you in a shorter notice here
OpenMusic, a network of Drupal based music social communities
TemplateMonster templates 20% off

A healthy disregard for the impossible.

No clue yet

yeeloon's picture

Right now, I am still figuring out how to utilize the use of this Panels 2. The Context and Content tabs section are a bit blurry to me (as I couldn't understand the descriptions trying to tell a normal user like myself. Still trying hard to grasp most of what it can actually do).

To roughly answer your question:
"I mean when you create a new artist and then create a new album how does drupal know who this album belongs to , so that at a later stage it can automatically populate a panel to display the artist and his albums?"

What I am planning to use is create a common Taxonomy called "Artist" which allocates itself to content types such as Artist and Albums. So, upon stumbling this new Panels 2, I thought I could achieve something like http://musicbox.sonybmg.com/artists/alicia-keys, which by itself should i.e Display all the latest content type Artist (where this content type is unique, as we only want to create the Artist only once) on the left panel and the latest content type Albums (while Albums can have many, such as listing the recent top 5 albums from this Artist) on the right panel by supplying the argument of only Taxonomy (which in this previous scenario above I want to supply Taxonomy called Alicia Keys).

So far, I have not been successful to do it. Also, I'm not sure if the above is possible (until I can fully understand what the Context and Content tabs can do).

But, this http://drupal.org/node/212523#comment-699991 tells me that it is possible, but just not sure how actually it is done.

Christopher, let me know if you have a better idea on this and this Panels 2.


Hi merlinofchaos (in case you stumble this),

Is this achievable without much hacking done?

As far as the artist-album

chrisroditis's picture

As far as the artist-album relationship is concerned, you can make the "artist" vocabulary a free-tagging one, and assign the content-types artist and album to this vocabulary. Now when someone creates an new artist he gets to type the artist name in the free tagging field, thus a term for this artist is created. When a new album is being created the author types the artist name in the same freetagging field, where he selects the preexisting artist term. In essence you get a term for each artist that contains an artist node and album nodes. Now if you create two views, one for displaying "artist" content-types that belong to the vocabulary "artist" and another for displaying "album" content-types for the same vocabulary, and then combine these two views in a panel, you get the job done! Another way to do this is with node relativity. I wish I could help you with setting up panels but I have not put my hands on it yet. You might file a support request at the panels issue queue.

OpenMusic, a network of Drupal based music social communities
TemplateMonster templates 20% off

A healthy disregard for the impossible.

Hi Christopher, Well, I did

yeeloon's picture

Hi Christopher,

Well, I did as what you suggested by changing it to adding 2 Views to the Panels. Apparently I still had no luck in achieving the output. So, I have to file a support request, hoping someone have done this previously.

For those interested to help, please share it over here (http://drupal.org/node/230208)

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: