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

Comments

kulfi’s picture

I 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 ...

mickwilson20’s picture

Same as the last poster - where am I supposed to put this code? where are the definitions for content types stored?

michelle’s picture

It 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

michelle’s picture

Status: Active » Needs review

ulfk - 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

sterwa’s picture

When 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

michelle’s picture

StatusFileSize
new4.19 KB

Fixed file.

Michelle

Rosamunda’s picture

Just one word:
AMAZING!

well, just another word
THANKS!!!!!!!!!!!!!!!!!!!!

It works like a charm!

Rosamunda :)

mdowsett’s picture

michelle’s picture

This is a patch for panels... It goes in the panels/content_types directory.

Michelle

sdboyer’s picture

Status: Needs review » Fixed

Sorry 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!

michelle’s picture

Yaaaaay! Thanks!

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.