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
Comment #1
Shadlington CreditAttribution: Shadlington commentedPossibly a duplicate of: #1011370: Ctools relationship from user
Although that issue doesn't really answer your question...
Comment #2
fagoonce we have integration with ctools, it works.
Comment #3
Sol Roth CreditAttribution: Sol Roth commentedI 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?
Comment #4
geshido CreditAttribution: geshido commentedsubscribe
Comment #5
davidwhthomas CreditAttribution: davidwhthomas commentedNote, you can already add Profile 2 fields to a Panel.
In my case this is the user/%user override panel.
Instructions:
Now you can add "Profile2" category fields under "Add content" on a Panel Pane :-)
HTH
DT
Comment #6
Desi Raaj CreditAttribution: Desi Raaj commentedI 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?
Comment #7
elBradford CreditAttribution: elBradford commentedI 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.
Comment #8
andypostThere's no ability to choose profile_type when adding relation so ONLY first (lightr weight) profile_type is really works
Comment #9
fagoPlease use the ctools issue.
Comment #10
RaulMuroc CreditAttribution: RaulMuroc commentedFago, 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.
Comment #11
zmove CreditAttribution: zmove commentedYou 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).
Comment #12
klucid CreditAttribution: klucid commented@zmove, Same issue here. Any luck with it?
Comment #13
pwaterz CreditAttribution: pwaterz commentedI wrote a work around patch for this a few months ago. Search the issue queue.
Comment #14
klucid CreditAttribution: klucid commentedThanks 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
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedWas this ever fixed for the latest versions? If not, would the patch still work?
Comment #16
klucid CreditAttribution: klucid commentedActually, 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