I have created a content type that allows you to choose a category from core profile and display the fields from that in a pane. The code needs a going over and I'm also not happy with the markup for the fields. I copied what you get with core profile but it doesn't look very good. I'm open to suggestions on how to better mark that up. Of course, it's a theme function so it can be overridden but it would be nice to have it looking good out of the box.
Michelle
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | profile_fields.inc_.txt | 4.19 KB | michelle |
| profile_fields.inc_.txt | 4.16 KB | michelle |
Comments
Comment #1
kulfi commentedI arrived at this page from http://drupal.org/node/214349, and its unclear what I do with the attached file?
[edit] It goes in panels/content_types. However I couldn't get AP to work, not sure where its falling down, but I'm getting default profiles ...
Comment #2
mickwilson20 commentedSame as the last poster - where am I supposed to put this code? where are the definitions for content types stored?
Comment #3
michelleIt goes in the content_types directory. Don't forget to take off the txt; that's just there because d.o won't let me up .inc files.
Michelle
Comment #4
michelleulfk - Your edit has nothing to do with this issue. If you are having trouble getting advprofile to work, please file an issue there with more details.
Marking this as a patch so it doesn't fall off merlin's radar... It's not technically a patch file but it's a whole file you just drop in so I don't know what I would make a patch of.
Michelle
Comment #5
sterwa commentedWhen i am trying to add a group of profile fields onto the panel, it ends up being only one field from the whole group being displayed... Did anyone get it to display more than one? Thanks
Comment #6
michelleFixed file.
Michelle
Comment #7
Rosamunda commentedJust one word:
AMAZING!
well, just another word
THANKS!!!!!!!!!!!!!!!!!!!!
It works like a charm!
Rosamunda :)
Comment #8
mdowsett commentedComment #9
michelleThis is a patch for panels... It goes in the panels/content_types directory.
Michelle
Comment #10
sdboyer commentedSorry I didn't update the issue - I made some small tweaks to the code (the content type needed to not show up if no profile fields had been created, lest it give us that nasty js error), but other than that, this patch is good, I committed it, and the new .inc file is included in panels2 beta3. woohoo!
Comment #11
michelleYaaaaay! Thanks!
Michelle
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.