The Profile 2 module appears not to provide field level access to the panels module. I seem to recall that the content profile in Drupal 6.X supported this feature.

For example, say I create a profile using the Profile 2 module and create several fields such as Gender, Age and hair colour,etc. for the user profile.

Then let us assume that I want to use the panels module to display some of fields that I have created (e.g Age, Gender) within a panel region.

The profile 2 module only supports inserting the whole user profile rather than offering the choice of implementing individual fields or the whole user profile.

P.S I am using profile2 7.x-1.0-beta2 with entity 7.x-1.0-beta8.

I not sure whether this is a bug or whether another module is required. Can you please clarify ?
Many thanks in advance.

Comments

Shadlington’s picture

Possibly a duplicate of: #1011370: Ctools relationship from user

Although that issue doesn't really answer your question...

fago’s picture

Status: Active » Closed (duplicate)

once we have integration with ctools, it works.

Sol Roth’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta3

I can add the fields from profile2 to panels using the latest version (tried both beta and dev), but I can't seem to get them to show up or for the %keyword substitutions to work in the title. Is full ctools integration still on ti's way? Is that why this doesn't work or am I doing something wrong in my panel?

geshido’s picture

subscribe

davidwhthomas’s picture

Note, you can already add Profile 2 fields to a Panel.

In my case this is the user/%user override panel.

Instructions:

  • Edit Panel
  • Under Variants > Contexts
  • Add "Relationship" > "Profile from User (on profile.uid)"
  • Give it a name like "User Profile"
  • Save

Now you can add "Profile2" category fields under "Add content" on a Panel Pane :-)

HTH

DT

Desi Raaj’s picture

I have already done what you mentioned but the fields only show up for user 1 and not for any other users, am i missing a settings?

elBradford’s picture

Status: Closed (duplicate) » Active

I have the same issue. The relationship is there and I can add Profiles2 fields and tokens, but they just don't appear in the profile.

andypost’s picture

Status: Active » Needs work

There's no ability to choose profile_type when adding relation so ONLY first (lightr weight) profile_type is really works

fago’s picture

Status: Needs work » Closed (duplicate)

Please use the ctools issue.

RaulMuroc’s picture

Fago, the developer of Ctools module stated there's no possibility to repair more things due to the excess of work for that module. Perhaps better to focuse on Profile2 to adapt it to Ctools instead of trying to adapt Ctools to Profile2 because there are much more modules depending on Ctools than the opposite way.

Profile2 is still not working correctly due to Ctools Page Manager or Profile2 design.

On the one hand, When I activate Ctools Page Manager, then the profile2 fields in Panels doesn't refresh their content when I change them.

On the other hand, when I deactivate Ctools Page Manager, then the profile2 fields in Panels does refresh their content though the panel page structure gets broken.

For the rest of field types it works perfectly, so is more PRofile2 thing than Ctools thing.

zmove’s picture

You can add the relationship between profile2 and user in a panel context.

It add all the profile2 fields when you add some content in the panels, but when you save all the change and you go to the user page, it is empty (whereas I'm sure my fields contains some data).

klucid’s picture

@zmove, Same issue here. Any luck with it?

pwaterz’s picture

I wrote a work around patch for this a few months ago. Search the issue queue.

klucid’s picture

Thanks for your quick response.

Is this the correct patch? Only reason I'm asking is because it wasn't submitted by you.
http://drupal.org/node/1011370#comment-5115014

Anonymous’s picture

Was this ever fixed for the latest versions? If not, would the patch still work?

klucid’s picture

Actually, I just stumbled on the patch that @pwaterz submitted. It seems to be working so far! Thanks so much, @pwaterz. It is much appreciated.

Patch here: http://drupal.org/node/1273026#comment-5697670