ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Displaying Custom Profile Fields in the Member List

February 25, 2011 1:28pm

Subscribe [4]
  • #1 / Feb 25, 2011 1:28pm

    mquill

    2 posts

    I have created some custom profile fields and I’m trying to customize our member list to display one of them, specifically a field named “jobtitle”.  I have created a new profile theme and edited the Member List Rows template to:

    
    
    

    However, instead of displaying each member’s job title in the member list table, it simply displays the string “{jobtitle}”.

    I tried using the {occupation} field instead but this gives me the same results.

    Is there a way to display a custom profile field in the member list or, failing that, is there a way to use the “occupation” field?  Or do I have to create my own member list using weblog templates and the {exp:member:custom_profile_data} tag?

    Thanks!

  • #2 / Feb 25, 2011 3:34pm

    cafenoir

    43 posts

    There is a blog entry here that seems to discuss what you are trying to do.

    Getting the ExpressionEngine Member List to Display Custom Member Fields

    Could this help?

  • #3 / Feb 25, 2011 7:34pm

    davecannon

    22 posts

    What if you’re not wanting the custom fields to display in the member list, but rather in the Admin>Member Groups>View Members area of the backend of EE?
    I’ve tried altering the code in cp.members.php and it seems like I should be able to add

    $DSP->table_qcell(‘tableHeadingAlt’, $LANG->line(‘my_custom_field’)).

    but it doesn’t recognize the names of my custom fields. Alternately it doesn’t recognize “custom_fields” either.

  • #4 / Feb 27, 2011 4:36pm

    Greg Salt

    3988 posts

    Hi mquill,

    The member templates are run through a lightweight engine separate to the normal template parser so that won’t work I’m afraid. Personally, I would do this on a regular template using the Query module and I certainly wouldn’t recommend hacking any of the core files.

    @davecannon,

    You would need to create an extension and the show_full_control_panel_end hook is probably the one you’d need.

    @cafenoir, thanks for helping out.

    Cheers

    Greg

  • #5 / Mar 02, 2011 5:44pm

    davecannon

    22 posts

    And how, exactly, would I go about creating an extension? What am I supposed to do with that hook?

  • #6 / Mar 02, 2011 5:52pm

    Ingmar

    29245 posts

    Have you seen the docs?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases