Help with Profile panels view

Status: 
Solved
Question: 

Hi there,

I'm really enjoying this eBook, but am tripping up on the part about how to make the user profile show up via a panels view.

I am using Content Profile module to add fields to profile. And then I follow this bit of instruction, but when I look at my profiles, they are not displaying in the panels layout I selected:

1. Create a panel page (/admin/panels/panel-page) (Panels module).

2. Choose a layout, let’s take the “Two Column Stacked” layout.

3. Name the panel “profile”.

4. Here is the tricky part: set the path to “/node/%”, by doing this all of
the node/3, node/4, node/5, . . . pages will be replaced by this panel,
and the argument % will be passed to the panel.

5. Leave the advanced settings as they are.

6. Define a context: add the argument3 “node ID” (fig 4.6), select the
content type Profile (for content type and own display).

We have successfully created a panel page that will take over all the profile pages and treat the argument (that is the % in the URL) as a node ID. By adding the argument node ID and restricting it to “profile”, we only take over the nodes that are profiles. So each profile will be replaced by this panel.

I can't seem to figure out what I'm doing wrong. If anyone can point me in the right direction, would very much appreciate it.

Cheers,
Kevin

Responses

1. First of all, I wonder if you

First of all, I wonder if you use the latest panels 2 release (alpha 3). There is a panels 3 out (from two days ago), but I haven't tried that yet. You might also want to update Content Profile B3, if you haven't already.

Your profile page is indeed not being taken over by a panel.

The path node/% should do the trick. If no info at all is being shown, this means at least that the profile is being taken over!

You also need to check that the panel has a context for node ID, but if it's blank, that should be the case.

If you go to the content section of your panel edit pages, you should be able

The next thing to do is check that the panel for your profile actually has content (this actually comes in the next section of the book, I don't know if you got there already). In any case, you would need to go to /admin/panels/panel-page/Profile/edit/content/argument_0-profile and fill up the panes.

Let me know if it works now!

2. Working now

I am using the Panels 6.x-2.0-alpha3 and Content Profiles B3.

I did add content, but still wasn't seeing anything. Just to test things, I went into the content area of panels and added "Who's Online" above the "Node ID content" and that showed up -- which made me realize something was wrong with my "Node ID content." I did that part over and got things working: http://pulpkulture.com/content/kevcol

So I'm plowing ahead now adding the avatar. Thanks much!

One more question if you don't mind (or maybe this will come later on in the book):

On my site, the linked username that automatically shows up by blog posts and other content goes to ".../users/username" instead of the pretty profile page that's at ".../content/username."

Is there a way to make the pretty profile page the default link?

Thanks,
Kevin

3. Still working

Actually, tweaked my pathauto settings, so URL of my profile is now
http://pulpkulture.com/profile/kevcol

Avator's now working, moving right along.

4. Hi

I am having a horrible time with the panels The book says that I must click on the plus sign. Each time I click on it a window pops up asking me if I would like to download the file any ideas what this means and how to fix it.

Regards,

Charles Pisano

5. I'm guessing you are

I'm guessing you are struggling with: http://drupal.org/node/238139 Please direct you to the Panels maintainers to fix this issue. I only ran into this one after the book was finished. Panels 3 will fix this, as for how and when to update, read the instruction given by the panels maintainers, they know most about this particular issue.

6. Hi

Ok, I attempted to downloaded the newest panel version and it blew up my site. I had to start all over again. I would advise everyone to stay away from that version it did not work for me.
I am thinking now that because I uploaded a beta version of the content profiles that is why the panels refuse to work for me.
Does anyone know where I can find a version of the content profiles not in beta.

Regards,

Charles Pisano