We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Creating a <select> based on a custom member field in 2.4.0

Development and Programming

Nico Meijer's avatar
Nico Meijer
41 posts
about 14 years ago
Nico Meijer's avatar Nico Meijer

Hi all,

I’m migrating an intranet from 1.6.6 to 2.4.0.

On the intranet, a custom member profile page is accessible via regular templates. Several custom meber fields are used.

The 1.6 code goes something like this. “Department” ({department}) is a custom member field.

{exp:user:edit member_id="{member_id}"}

Department:

<select name="department">
{select_department}
<option value="{value}" {selected}>{value}</option>
{/select_department}
</select>

{/exp:user:edit}

For the life of me, in the User Guide I cannot find how to do this in 2.4.0. By now, of course I am using

{exp:member:custom_profile_data}...{/exp:member:custom_profile_data}

Can anybody point me to some documentation on this?

Thanks!… Nico

       
Victor Michnowicz's avatar
Victor Michnowicz
95 posts
about 14 years ago
Victor Michnowicz's avatar Victor Michnowicz

Take a look at the template code in Design > Themes > Member Profile Templates > Default. You necessary code will prolly look something like this:

{custom_fields} {if field_description{field_description}{/if}> {field_name} {field} {/custom_fields}

       
Nico Meijer's avatar
Nico Meijer
41 posts
about 14 years ago
Nico Meijer's avatar Nico Meijer

Thanks for your response, Victor!

Unfortunately, {custom_fields} is echoed verbatim. I’ll try the support forum, since it seems to come down to a lack of documentation…

Thx… Nico

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.